map_inputs_model.dart
1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
class MapInputsModel {
String? poiId; //Poi的id
double? longitude; //获取该点经度 获取Poi的经纬度,如果不存在经纬度则为空
double? latitude; //该点的纬度 获取Poi的经纬度,如果不存在经纬度则为空
String? name; //返回提示名称
String? district; //返回提示区域
String? adcode; //返回提示区域编码
String? typeCode; //获取输入提示结果的类型编码
String? city; //获取输入提示结果的城市
MapInputsModel(
{this.poiId,
this.longitude,
this.latitude,
this.name,
this.district,
this.adcode,
this.typeCode,
this.city});
MapInputsModel.fromJson(Map<dynamic, dynamic> json) {
poiId = json['poiId'];
longitude = json['longitude'];
latitude = json['latitude'];
name = json['name'];
district = json['district'];
adcode = json['adcode'];
typeCode = json['typeCode'];
city = json['city'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['poiId'] = this.poiId;
data['longitude'] = this.longitude;
data['latitude'] = this.latitude;
data['name'] = this.name;
data['district'] = this.district;
data['adcode'] = this.adcode;
data['typeCode'] = this.typeCode;
data['city'] = this.city;
return data;
}
}