import 'package:json_annotation/json_annotation.dart'; part 'mip_data.g.dart'; @JsonSerializable(explicitToJson: true) class MIpData { String? ret; Mip? data; MIpData(); factory MIpData.fromJson(Map json) => _$MIpDataFromJson(json); Map toJson() => _$MIpDataToJson(this); } @JsonSerializable(explicitToJson: true) class Mip { String? ip; List? location; Mip({this.ip, this.location}); factory Mip.fromJson(Map json) => _$MipFromJson(json); Map toJson() => _$MipToJson(this); }