IdpConfig.fromJson constructor

IdpConfig.fromJson(
  1. Map json_
)

Implementation

IdpConfig.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,
      );