toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
if (embedded != null) r'_embedded': embedded,
if (links != null) r'_links': links,
if (createdAt != null) r'createdAt': createdAt!.toUtc().toIso8601String(),
if (description != null) r'description': description,
if (geoCoordinates != null) r'geoCoordinates': geoCoordinates,
if (id != null) r'id': id,
if (metadata != null) r'metadata': metadata,
if (public != null) r'public': public,
if (type != null) r'type': type,
if (updatedAt != null) r'updatedAt': updatedAt!.toUtc().toIso8601String(),
if (visibility != null) r'visibility': visibility,
};
}