GroupedResult.fromJson constructor

GroupedResult.fromJson(
  1. Map json_
)

Implementation

GroupedResult.fromJson(core.Map json_)
  : this(
      boundingPoly: json_.containsKey('boundingPoly')
          ? BoundingPoly.fromJson(
              json_['boundingPoly'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      objectAnnotations: (json_['objectAnnotations'] as core.List?)
          ?.map(
            (value) => ObjectAnnotation.fromJson(
              value as core.Map<core.String, core.dynamic>,
            ),
          )
          .toList(),
      results: (json_['results'] as core.List?)
          ?.map(
            (value) =>
                Result.fromJson(value as core.Map<core.String, core.dynamic>),
          )
          .toList(),
    );