FetchRemoteConfigRequest.fromJson constructor

FetchRemoteConfigRequest.fromJson(
  1. Map _json
)

Implementation

FetchRemoteConfigRequest.fromJson(core.Map _json)
    : this(
        analyticsUserProperties: _json.containsKey('analyticsUserProperties')
            ? (_json['analyticsUserProperties']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        appBuild: _json.containsKey('appBuild')
            ? _json['appBuild'] as core.String
            : null,
        appId:
            _json.containsKey('appId') ? _json['appId'] as core.String : null,
        appInstanceId: _json.containsKey('appInstanceId')
            ? _json['appInstanceId'] as core.String
            : null,
        appInstanceIdToken: _json.containsKey('appInstanceIdToken')
            ? _json['appInstanceIdToken'] as core.String
            : null,
        appVersion: _json.containsKey('appVersion')
            ? _json['appVersion'] as core.String
            : null,
        countryCode: _json.containsKey('countryCode')
            ? _json['countryCode'] as core.String
            : null,
        firstOpenTime: _json.containsKey('firstOpenTime')
            ? _json['firstOpenTime'] as core.String
            : null,
        languageCode: _json.containsKey('languageCode')
            ? _json['languageCode'] as core.String
            : null,
        packageName: _json.containsKey('packageName')
            ? _json['packageName'] as core.String
            : null,
        platformVersion: _json.containsKey('platformVersion')
            ? _json['platformVersion'] as core.String
            : null,
        sdkVersion: _json.containsKey('sdkVersion')
            ? _json['sdkVersion'] as core.String
            : null,
        timeZone: _json.containsKey('timeZone')
            ? _json['timeZone'] as core.String
            : null,
      );