Oauth2AuthCodeFlow.fromJson constructor

Oauth2AuthCodeFlow.fromJson(
  1. Map json_
)

Implementation

Oauth2AuthCodeFlow.fromJson(core.Map json_)
    : this(
        authCode: json_['authCode'] as core.String?,
        authUri: json_['authUri'] as core.String?,
        clientId: json_['clientId'] as core.String?,
        clientSecret: json_.containsKey('clientSecret')
            ? Secret.fromJson(
                json_['clientSecret'] as core.Map<core.String, core.dynamic>)
            : null,
        enablePkce: json_['enablePkce'] as core.bool?,
        pkceVerifier: json_['pkceVerifier'] as core.String?,
        redirectUri: json_['redirectUri'] as core.String?,
        scopes: (json_['scopes'] as core.List?)
            ?.map((value) => value as core.String)
            .toList(),
      );