TranslationElement.fromJson constructor

TranslationElement.fromJson({
  1. required Map<String, dynamic> json,
})

Implementation

factory TranslationElement.fromJson({required Map<String, dynamic> json}) =>
    TranslationElement(
      type: TranslationElementType.values.byName(json['type'] as String),
      value: json['value'] as String,
    );