DictionaryEntry.fromJson constructor

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

Implementation

factory DictionaryEntry.fromJson(Map<String, dynamic> json) {
  final instance = _$DictionaryEntryFromJson(json);
  final additionalProperties = Map<String, dynamic>.from(json)
    ..removeWhere((key, value) => _$DictionaryEntryFieldMap.containsKey(key));
  return DictionaryEntry(
    objectID: instance.objectID,
    language: instance.language,
    word: instance.word,
    words: instance.words,
    decomposition: instance.decomposition,
    state: instance.state,
    additionalProperties: additionalProperties,
  );
}