ReferenceImage.fromJson constructor

ReferenceImage.fromJson(
  1. Map json_
)

Implementation

ReferenceImage.fromJson(core.Map json_)
    : this(
        boundingPolys: json_.containsKey('boundingPolys')
            ? (json_['boundingPolys'] as core.List)
                .map((value) => BoundingPoly.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );