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, item) => core.MapEntry(
                  key,
                  RemoteConfigParameterGroup.fromJson(
                      item as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        parameters: _json.containsKey('parameters')
            ? (_json['parameters'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  RemoteConfigParameter.fromJson(
                      item as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        version: _json.containsKey('version')
            ? Version.fromJson(
                _json['version'] as core.Map<core.String, core.dynamic>)
            : null,
      );