toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.consentRequired != null) {
json[r'consent_required'] = this.consentRequired;
} else {
json[r'consent_required'] = null;
}
if (this.client != null) {
json[r'client'] = this.client;
} else {
json[r'client'] = null;
}
json[r'scopes'] = this.scopes;
if (this.redirectUri != null) {
json[r'redirect_uri'] = this.redirectUri;
} else {
json[r'redirect_uri'] = null;
}
if (this.state != null) {
json[r'state'] = this.state;
} else {
json[r'state'] = null;
}
return json;
}