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