GoogleCloudIdentitytoolkitV1IdpConfig.fromJson constructor

GoogleCloudIdentitytoolkitV1IdpConfig.fromJson(
  1. Map _json
)

Implementation

GoogleCloudIdentitytoolkitV1IdpConfig.fromJson(core.Map _json)
    : this(
        clientId: _json.containsKey('clientId')
            ? _json['clientId'] as core.String
            : null,
        enabled: _json.containsKey('enabled')
            ? _json['enabled'] as core.bool
            : null,
        experimentPercent: _json.containsKey('experimentPercent')
            ? _json['experimentPercent'] as core.int
            : null,
        provider: _json.containsKey('provider')
            ? _json['provider'] as core.String
            : null,
        secret: _json.containsKey('secret')
            ? _json['secret'] as core.String
            : null,
        whitelistedAudiences: _json.containsKey('whitelistedAudiences')
            ? (_json['whitelistedAudiences'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );