LocalizedObjectAnnotation.fromJson constructor

LocalizedObjectAnnotation.fromJson(
  1. Map json_
)

Implementation

LocalizedObjectAnnotation.fromJson(core.Map json_)
    : this(
        boundingPoly: json_.containsKey('boundingPoly')
            ? BoundingPoly.fromJson(
                json_['boundingPoly'] as core.Map<core.String, core.dynamic>)
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        mid: json_.containsKey('mid') ? json_['mid'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        score: json_.containsKey('score')
            ? (json_['score'] as core.num).toDouble()
            : null,
      );