toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'client_id'] = this.clientId;
  if (this.scope != null) {
    json[r'scope'] = this.scope;
  } else {
    json[r'scope'] = null;
  }
    json[r'redirect_uri'] = this.redirectUri;
  if (this.state != null) {
    json[r'state'] = this.state;
  } else {
    json[r'state'] = null;
  }
  if (this.nonce != null) {
    json[r'nonce'] = this.nonce;
  } else {
    json[r'nonce'] = null;
  }
  if (this.codeChallenge != null) {
    json[r'code_challenge'] = this.codeChallenge;
  } else {
    json[r'code_challenge'] = null;
  }
  if (this.codeChallengeMethod != null) {
    json[r'code_challenge_method'] = this.codeChallengeMethod;
  } else {
    json[r'code_challenge_method'] = null;
  }
    json[r'approved'] = this.approved;
  return json;
}