LocationIpResponse class

Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

LocationIpResponse.new({String? status, String? info, String? infoCode, String? province, String? city, String? adcode, LatLngBounds? rectangle})
const
LocationIpResponse.fromJson(Map<String, dynamic> json)
factory

Properties

adcode String?
adcode: 城市的adcode编码
final
city String?
city: 城市名称,若为直辖市则显示直辖市名称;如果为局域网网段内IP或者非法IP或国外IP,则返回空
final
hashCode int
The hash code for this object.
no setterinherited
info String?
info: 返回状态说明,status为0时,info返回错误原因,否则返回“OK”
final
infoCode String?
infocode: 状态码,10000代表正确,详情参阅info状态表
final
province String?
province: 省份名称,若为直辖市则显示直辖市名称;如果在局域网IP网段内,则返回“局域网”;非法IP以及国外IP则返回空
final
rectangle LatLngBounds?
rectangle: 所在城市矩形区域范围,格式为西, 南; 东, 北,单位为经纬度
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
status: 返回结果状态值,值为0或1;0表示失败,1表示成功
final

Methods

copyWith({String? status, String? info, String? infoCode, String? province, String? city, String? adcode, LatLngBounds? rectangle}) LocationIpResponse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited