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;
}
if (type != null) {
json[r'type'] = type;
}
json[r'name'] = name;
if (description != null) {
json[r'description'] = description;
}
if (orgID != null) {
json[r'orgID'] = orgID;
}
if (rp != null) {
json[r'rp'] = rp;
}
if (schemaType != null) {
json[r'schemaType'] = schemaType;
}
if (createdAt != null) {
json[r'createdAt'] = createdAt!.toUtc().toIso8601String();
}
if (updatedAt != null) {
json[r'updatedAt'] = updatedAt!.toUtc().toIso8601String();
}
json[r'retentionRules'] = retentionRules;
if (labels != null) {
json[r'labels'] = labels;
}
return json;
}