toMap method
Returns a map of properties. This method is used internally by the SDK.
Implementation
@override
Map<String, dynamic> toMap() {
Map<String, dynamic> map = _getProperties();
if (color != null) {
map['color'] = color?.toHex();
}
if (iconName != null) {
map['iconName'] = iconName;
}
if (blendMode != null) {
map['blendMode'] = blendMode?.name;
}
return map;
}