RemoteConfig.fromJson constructor

RemoteConfig.fromJson(
  1. Map json_
)

Implementation

RemoteConfig.fromJson(core.Map json_)
    : this(
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.List)
                .map((value) => RemoteConfigCondition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        parameterGroups: json_.containsKey('parameterGroups')
            ? (json_['parameterGroups']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  RemoteConfigParameterGroup.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        parameters: json_.containsKey('parameters')
            ? (json_['parameters'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  RemoteConfigParameter.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        version: json_.containsKey('version')
            ? Version.fromJson(
                json_['version'] as core.Map<core.String, core.dynamic>)
            : null,
      );