You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
665 B
29 lines
665 B
import 'package:huixiang/generated/json/base/json_field.dart'; |
|
import 'package:huixiang/generated/json/ip_data.g.dart'; |
|
import 'dart:convert'; |
|
export 'package:huixiang/generated/json/ip_data.g.dart'; |
|
|
|
@JsonSerializable() |
|
class IpData { |
|
String? ip = ''; |
|
String? pro = ''; |
|
String? proCode = ''; |
|
String? city = ''; |
|
String? cityCode = ''; |
|
String? region = ''; |
|
String? regionCode = ''; |
|
String? addr = ''; |
|
String? regionNames = ''; |
|
String? err = ''; |
|
|
|
IpData(); |
|
|
|
factory IpData.fromJson(Map<String, dynamic> json) => $IpDataFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => $IpDataToJson(this); |
|
|
|
@override |
|
String toString() { |
|
return jsonEncode(this); |
|
} |
|
} |