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