Locale.fromMap constructor

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

Implementation

factory Locale.fromMap(Map<String, dynamic> map) {
  return Locale(
    ip: map['ip'].toString(),
    countryCode: map['countryCode'].toString(),
    country: map['country'].toString(),
    continentCode: map['continentCode'].toString(),
    continent: map['continent'].toString(),
    eu: map['eu'],
    currency: map['currency'].toString(),
  );
}