EntityMention.fromJson constructor
EntityMention.fromJson(
- Map json_
Implementation
EntityMention.fromJson(core.Map json_)
: this(
certaintyAssessment: json_.containsKey('certaintyAssessment')
? Feature.fromJson(json_['certaintyAssessment']
as core.Map<core.String, core.dynamic>)
: null,
confidence: json_.containsKey('confidence')
? (json_['confidence'] as core.num).toDouble()
: null,
linkedEntities: json_.containsKey('linkedEntities')
? (json_['linkedEntities'] as core.List)
.map((value) => LinkedEntity.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
mentionId: json_.containsKey('mentionId')
? json_['mentionId'] as core.String
: null,
subject: json_.containsKey('subject')
? Feature.fromJson(
json_['subject'] as core.Map<core.String, core.dynamic>)
: null,
temporalAssessment: json_.containsKey('temporalAssessment')
? Feature.fromJson(json_['temporalAssessment']
as core.Map<core.String, core.dynamic>)
: null,
text: json_.containsKey('text')
? TextSpan.fromJson(
json_['text'] as core.Map<core.String, core.dynamic>)
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);