ObjectAnnotation.fromJson constructor

ObjectAnnotation.fromJson(
  1. Map json_
)

Implementation

ObjectAnnotation.fromJson(core.Map json_)
    : this(
        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,
      );