build method
override
Implementation
@override
Map<String, Object?> build() => {
if (title != null) 'title': title,
if (description != null) 'description': description,
if (url != null) 'url': url.toString(),
if (timestamp != null) 'timestamp': timestamp!.toIso8601String(),
if (color != null) 'color': color!.value,
if (footer != null) 'footer': footer!.build(),
if (image != null) 'image': image!.build(),
if (thumbnail != null) 'thumbnail': thumbnail!.build(),
if (author != null) 'author': author!.build(),
if (fields != null) 'fields': fields!.map((e) => e.build()).toList(),
};