UserLocale.fromJson constructor

UserLocale.fromJson(
  1. Map json_
)

Implementation

UserLocale.fromJson(core.Map json_)
    : this(
        country: json_.containsKey('country')
            ? json_['country'] as core.String
            : null,
        language: json_.containsKey('language')
            ? json_['language'] as core.String
            : null,
        variant: json_.containsKey('variant')
            ? json_['variant'] as core.String
            : null,
      );