DetectedItems.fromJson constructor

DetectedItems.fromJson(
  1. Map json_
)

Implementation

DetectedItems.fromJson(core.Map json_)
    : this(
        items: json_.containsKey('items')
            ? (json_['items'] as core.List)
                .map((value) => Item.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        richResultType: json_.containsKey('richResultType')
            ? json_['richResultType'] as core.String
            : null,
      );