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 (fillColor != null) {
map['fillColor'] = fillColor?.toHex();
}
if (outlineColor != null) {
map['outlineColor'] = outlineColor?.toHex();
}
if (overlayText != null) {
map['overlayText'] = overlayText;
}
if (repeatOverlayText != null) {
map['repeatOverlayText'] = repeatOverlayText;
}
if (blendMode != null) {
map['blendMode'] = blendMode?.name;
}
return map;
}