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