Entity.fromJson constructor

Entity.fromJson(
  1. Map<String, dynamic> json
)

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(),
  );
}