RemoteConfigParameter.fromJson constructor

RemoteConfigParameter.fromJson(
  1. Map json_
)

Implementation

RemoteConfigParameter.fromJson(core.Map json_)
    : this(
        conditionalValues: json_.containsKey('conditionalValues')
            ? (json_['conditionalValues']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  RemoteConfigParameterValue.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        defaultValue: json_.containsKey('defaultValue')
            ? RemoteConfigParameterValue.fromJson(
                json_['defaultValue'] as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        valueType: json_.containsKey('valueType')
            ? json_['valueType'] as core.String
            : null,
      );