ServerRemoteConfig.fromJson constructor

ServerRemoteConfig.fromJson(
  1. Map json_
)

Implementation

ServerRemoteConfig.fromJson(core.Map json_)
    : this(
        conditions: json_.containsKey('conditions')
            ? (json_['conditions'] as core.List)
                .map((value) => ServerRemoteConfigCondition.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        parameters: json_.containsKey('parameters')
            ? (json_['parameters'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  ServerRemoteConfigParameter.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,
      );