UserCountrySet.fromJson constructor

UserCountrySet.fromJson(
  1. Map json_
)

Implementation

UserCountrySet.fromJson(core.Map json_)
    : this(
        countryCodes: json_.containsKey('countryCodes')
            ? (json_['countryCodes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );