EntityAnnotation.fromJson constructor
EntityAnnotation.fromJson(
- 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_.containsKey('confidence')
? (json_['confidence'] as core.num).toDouble()
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
locale: json_.containsKey('locale')
? json_['locale'] as core.String
: null,
locations: json_.containsKey('locations')
? (json_['locations'] as core.List)
.map((value) => LocationInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
mid: json_.containsKey('mid') ? json_['mid'] as core.String : null,
properties: json_.containsKey('properties')
? (json_['properties'] as core.List)
.map((value) => Property.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
score: json_.containsKey('score')
? (json_['score'] as core.num).toDouble()
: null,
topicality: json_.containsKey('topicality')
? (json_['topicality'] as core.num).toDouble()
: null,
);