DefinitionDocument.fromJson constructor

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

Implementation

factory DefinitionDocument.fromJson(Map<String, dynamic> json) {
  return DefinitionDocument(
    language: (json['language'] as String).toDefinitionLanguage(),
    text: json['text'] as String,
  );
}