toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'object'] = this.object;
json[r'id'] = this.id;
json[r'client_id'] = this.clientId;
json[r'subject'] = this.subject;
json[r'scopes'] = this.scopes;
json[r'revoked'] = this.revoked;
if (this.revocationReason != null) {
json[r'revocation_reason'] = this.revocationReason;
} else {
json[r'revocation_reason'] = null;
}
json[r'expired'] = this.expired;
if (this.expiration != null) {
json[r'expiration'] = this.expiration;
} else {
json[r'expiration'] = null;
}
json[r'created_at'] = this.createdAt;
json[r'updated_at'] = this.updatedAt;
json[r'active'] = this.active;
return json;
}