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 json) => _$GroupsFromJson(json); } @freezed class Normal with _$Normal { const factory Normal({ List? tags, List? list, }) = _Normal; factory Normal.fromJson(Map json) => _$NormalFromJson(json); } @freezed class Tags with _$Tags { const factory Tags({ int? id, String? name, String? icon, int? sort, }) = _Tags; factory Tags.fromJson(Map json) => _$TagsFromJson(json); } @freezed class LocationList with _$LocationList { const factory LocationList({ int? id, String? name, String? icon, int? tag, List? locations, }) = _LocationList; factory LocationList.fromJson(Map 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 json) => _$LocationsFromJson(json); } @freezed class Param with _$Param { const factory Param({ String? g, }) = _Param; factory Param.fromJson(Map json) => _$ParamFromJson(json); }