toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.clientId != null) {
json[r'client_id'] = this.clientId;
} else {
json[r'client_id'] = null;
}
if (this.clientName != null) {
json[r'client_name'] = this.clientName;
} else {
json[r'client_name'] = null;
}
json[r'scopes'] = this.scopes;
if (this.grantedAt != null) {
json[r'granted_at'] = this.grantedAt!.toUtc().toIso8601String();
} else {
json[r'granted_at'] = null;
}
return json;
}