LocaleCode.fromMap constructor

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

Implementation

factory LocaleCode.fromMap(Map<String, dynamic> map) {
  return LocaleCode(
    code: map['code'].toString(),
    name: map['name'].toString(),
  );
}