ImageOccurrence.fromJson constructor

ImageOccurrence.fromJson(
  1. 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,
      );