Translation.fromMap constructor

Translation.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Translation.fromMap(Map<String, dynamic> map) {
  return Translation(
    languageCode: map['language'] as String,
    value: TranslationValue.fromMap(map['value'] as Map<String, dynamic>),
    code: map['string'] as String,
  );
}