ImageOccurrence.fromJson constructor

ImageOccurrence.fromJson(
  1. Map json_
)

Implementation

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