DeviceTierConfig.fromJson constructor

DeviceTierConfig.fromJson(
  1. Map json_
)

Implementation

DeviceTierConfig.fromJson(core.Map json_)
    : this(
        deviceGroups: json_.containsKey('deviceGroups')
            ? (json_['deviceGroups'] as core.List)
                .map((value) => DeviceGroup.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        deviceTierConfigId: json_.containsKey('deviceTierConfigId')
            ? json_['deviceTierConfigId'] as core.String
            : null,
        deviceTierSet: json_.containsKey('deviceTierSet')
            ? DeviceTierSet.fromJson(
                json_['deviceTierSet'] as core.Map<core.String, core.dynamic>)
            : null,
        userCountrySets: json_.containsKey('userCountrySets')
            ? (json_['userCountrySets'] as core.List)
                .map((value) => UserCountrySet.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );