Entity.fromJson constructor
Implementation
factory Entity.fromJson(Map<String, dynamic> json) {
return Entity(
beginOffset: json['BeginOffset'] as int?,
endOffset: json['EndOffset'] as int?,
score: json['Score'] as double?,
text: json['Text'] as String?,
type: (json['Type'] as String?)?.toEntityType(),
);
}