LocaleCodeList.fromMap constructor

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

Implementation

factory LocaleCodeList.fromMap(Map<String, dynamic> map) {
  return LocaleCodeList(
    total: map['total'],
    localeCodes: List<LocaleCode>.from(
        map['localeCodes'].map((p) => LocaleCode.fromMap(p))),
  );
}