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