FetchRemoteConfigResponse.fromJson constructor

FetchRemoteConfigResponse.fromJson(
  1. Map json_
)

Implementation

FetchRemoteConfigResponse.fromJson(core.Map json_)
    : this(
        appName: json_.containsKey('appName')
            ? json_['appName'] as core.String
            : null,
        entries: json_.containsKey('entries')
            ? (json_['entries'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        experimentDescriptions: json_.containsKey('experimentDescriptions')
            ? (json_['experimentDescriptions'] as core.List)
                .map((value) => ExperimentDescription.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        personalizationMetadata: json_.containsKey('personalizationMetadata')
            ? (json_['personalizationMetadata']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  PersonalizationMetadata.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        rolloutMetadata: json_.containsKey('rolloutMetadata')
            ? (json_['rolloutMetadata'] as core.List)
                .map((value) => RolloutMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        templateVersion: json_.containsKey('templateVersion')
            ? json_['templateVersion'] as core.String
            : null,
      );