toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (links != null) {
json[r'links'] = links;
}
if (id != null) {
json[r'id'] = id;
}
json[r'name'] = name;
if (description != null) {
json[r'description'] = description;
}
if (createdAt != null) {
json[r'createdAt'] = createdAt!.toUtc().toIso8601String();
}
if (updatedAt != null) {
json[r'updatedAt'] = updatedAt!.toUtc().toIso8601String();
}
if (status != null) {
json[r'status'] = status;
}
return json;
}