| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import 'package:freezed_annotation/freezed_annotation.dart';
- import 'package:flutter/foundation.dart';
- part 'groups.freezed.dart';
- part 'groups.g.dart';
- @freezed
- class Groups with _$Groups {
- const factory Groups({
- Normal? normal,
- }) = _Groups;
- factory Groups.fromJson(Map<String, Object?> json) => _$GroupsFromJson(json);
- }
- @freezed
- class Normal with _$Normal {
- const factory Normal({
- List<Tags>? tags,
- List<LocationList>? list,
- }) = _Normal;
- factory Normal.fromJson(Map<String, Object?> json) => _$NormalFromJson(json);
- }
- @freezed
- class Tags with _$Tags {
- const factory Tags({
- int? id,
- String? name,
- String? icon,
- int? sort,
- }) = _Tags;
- factory Tags.fromJson(Map<String, Object?> json) => _$TagsFromJson(json);
- }
- @freezed
- class LocationList with _$LocationList {
- const factory LocationList({
- int? id,
- String? name,
- String? icon,
- int? tag,
- List<Locations>? locations,
- }) = _LocationList;
- factory LocationList.fromJson(Map<String, Object?> json) =>
- _$LocationListFromJson(json);
- }
- @freezed
- class Locations with _$Locations {
- const factory Locations({
- int? id,
- String? name,
- String? code,
- Param? param,
- dynamic paramV2,
- String? icon,
- String? country,
- int? sort,
- int? latency,
- }) = _Locations;
- factory Locations.fromJson(Map<String, Object?> json) =>
- _$LocationsFromJson(json);
- }
- @freezed
- class Param with _$Param {
- const factory Param({
- String? g,
- }) = _Param;
- factory Param.fromJson(Map<String, Object?> json) => _$ParamFromJson(json);
- }
|