GeolayerdataGeo.fromJson constructor
GeolayerdataGeo.fromJson(
- Map json_
Implementation
GeolayerdataGeo.fromJson(core.Map json_)
: this(
boundary: json_.containsKey('boundary')
? (json_['boundary'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
cachePolicy: json_.containsKey('cachePolicy')
? json_['cachePolicy'] as core.String
: null,
countryCode: json_.containsKey('countryCode')
? json_['countryCode'] as core.String
: null,
latitude: json_.containsKey('latitude')
? (json_['latitude'] as core.num).toDouble()
: null,
longitude: json_.containsKey('longitude')
? (json_['longitude'] as core.num).toDouble()
: null,
mapType: json_.containsKey('mapType')
? json_['mapType'] as core.String
: null,
viewport: json_.containsKey('viewport')
? GeolayerdataGeoViewport.fromJson(
json_['viewport'] as core.Map<core.String, core.dynamic>)
: null,
zoom: json_.containsKey('zoom') ? json_['zoom'] as core.int : null,
);