toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
if (links != null) r'_links': links,
if (alternateName != null) r'alternateName': alternateName,
if (createdAt != null) r'createdAt': createdAt!.toUtc().toIso8601String(),
if (id != null) r'id': id,
if (metadataSchema != null) r'metadataSchema': metadataSchema,
r'name': name,
if (type != null) r'type': type,
if (updatedAt != null) r'updatedAt': updatedAt!.toUtc().toIso8601String(),
};
}