toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'client_id'] = this.clientId;
if (this.clientSecret != null) {
json[r'client_secret'] = this.clientSecret;
} else {
json[r'client_secret'] = null;
}
json[r'client_name'] = this.clientName;
json[r'redirect_uris'] = this.redirectUris;
json[r'grant_types'] = this.grantTypes;
json[r'response_types'] = this.responseTypes;
if (this.scope != null) {
json[r'scope'] = this.scope;
} else {
json[r'scope'] = null;
}
if (this.tokenEndpointAuthMethod != null) {
json[r'token_endpoint_auth_method'] = this.tokenEndpointAuthMethod;
} else {
json[r'token_endpoint_auth_method'] = null;
}
json[r'registration_access_token'] = this.registrationAccessToken;
if (this.registrationClientUri != null) {
json[r'registration_client_uri'] = this.registrationClientUri;
} else {
json[r'registration_client_uri'] = null;
}
json[r'client_id_issued_at'] = this.clientIdIssuedAt;
return json;
}