Credential.fromJson constructor

Credential.fromJson(
  1. Map<String, dynamic> json, {
  2. Client? httpClient,
})

Implementation

Credential.fromJson(Map<String, dynamic> json, {http.Client? httpClient})
    : this._(
          Client(
              Issuer(OpenIdProviderMetadata.fromJson(
                  (json['issuer'] as Map).cast())),
              json['client_id'],
              clientSecret: json['client_secret'],
              httpClient: httpClient),
          TokenResponse.fromJson((json['token'] as Map).cast()),
          json['nonce']);