ImageOccurrence.fromJson constructor
ImageOccurrence.fromJson(
- Map _json
Implementation
ImageOccurrence.fromJson(core.Map _json)
: this(
baseResourceUrl: _json.containsKey('baseResourceUrl')
? _json['baseResourceUrl'] as core.String
: null,
distance: _json.containsKey('distance')
? _json['distance'] as core.int
: null,
fingerprint: _json.containsKey('fingerprint')
? Fingerprint.fromJson(
_json['fingerprint'] as core.Map<core.String, core.dynamic>)
: null,
layerInfo: _json.containsKey('layerInfo')
? (_json['layerInfo'] as core.List)
.map((value) => Layer.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);