toMap method
Implementation
@override
Map<String, Object?> toMap() {
return {
...super.toMap(),
if (icons != null) 'icons': icons!.map((e) => e.toMap()).toList(),
'name': name,
if (title != null) 'title': title,
'uri': uri,
if (description != null) 'description': description,
if (size != null) 'size': size,
};
}