Translation.fromMap constructor

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

Implementation

factory Translation.fromMap(Map<String, dynamic> map) {
  return Translation(
    en: map['en'],
    id: map['id'],
  );
}