toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'type'] = this.type;
json[r'name'] = this.name;
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
json[r'subject'] = this.subject;
if (this.claims != null) {
json[r'claims'] = this.claims;
} else {
json[r'claims'] = null;
}
json[r'scopes'] = this.scopes;
if (this.createdBy != null) {
json[r'created_by'] = this.createdBy;
} else {
json[r'created_by'] = null;
}
if (this.secondsUntilExpiration != null) {
json[r'seconds_until_expiration'] = this.secondsUntilExpiration;
} else {
json[r'seconds_until_expiration'] = null;
}
return json;
}