toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
if (this.workspaceId != null) {
json[r'workspaceId'] = this.workspaceId;
} else {
json[r'workspaceId'] = null;
}
json[r'email'] = this.email;
json[r'role'] = this.role;
if (this.expiresAt != null) {
json[r'expiresAt'] = this.expiresAt!.toUtc().toIso8601String();
} else {
json[r'expiresAt'] = null;
}
json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
if (this.acceptedAt != null) {
json[r'acceptedAt'] = this.acceptedAt!.toUtc().toIso8601String();
} else {
json[r'acceptedAt'] = null;
}
if (this.revokedAt != null) {
json[r'revokedAt'] = this.revokedAt!.toUtc().toIso8601String();
} else {
json[r'revokedAt'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
return json;
}