EntityAnnotation.fromJson constructor

EntityAnnotation.fromJson(
  1. Map json_
)

Implementation

EntityAnnotation.fromJson(core.Map json_)
    : this(
        boundingPoly: json_.containsKey('boundingPoly')
            ? BoundingPoly.fromJson(
                json_['boundingPoly'] as core.Map<core.String, core.dynamic>)
            : null,
        confidence: (json_['confidence'] as core.num?)?.toDouble(),
        description: json_['description'] as core.String?,
        locale: json_['locale'] as core.String?,
        locations: (json_['locations'] as core.List?)
            ?.map((value) => LocationInfo.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        mid: json_['mid'] as core.String?,
        properties: (json_['properties'] as core.List?)
            ?.map((value) => Property.fromJson(
                value as core.Map<core.String, core.dynamic>))
            .toList(),
        score: (json_['score'] as core.num?)?.toDouble(),
        topicality: (json_['topicality'] as core.num?)?.toDouble(),
      );