ServerRemoteConfigParameter.fromJson constructor

ServerRemoteConfigParameter.fromJson(
  1. Map json_
)

Implementation

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