toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
json[r'custom'] = this.custom;
if (this.deletedAt != null) {
json[r'deleted_at'] = this.deletedAt!.toUtc().toIso8601String();
} else {
json[r'deleted_at'] = null;
}
if (this.role != null) {
json[r'role'] = this.role;
} else {
json[r'role'] = null;
}
json[r'updated_at'] = this.updatedAt.toUtc().toIso8601String();
json[r'user'] = this.user;
json[r'user_id'] = this.userId;
return json;
}