toJson method
Implementation
Map<String, dynamic> toJson() {
return {
"showPolygonInManualMode": showPolygonInManualMode,
if (autoSnapProgressStrokeColor != null)
"autoSnapProgressStrokeColor":
toColorString(autoSnapProgressStrokeColor!),
if (strokeColor != null) "strokeColor": toColorString(strokeColor!),
if (strokeOkColor != null) "strokeOkColor": toColorString(strokeOkColor!),
if (fillColor != null) "fillColor": toColorString(fillColor!),
if (fillOkColor != null) "fillOkColor": toColorString(fillOkColor!),
if (strokeWidth != null) "strokeWidth": strokeWidth,
if (autoSnapProgressStrokeWidth != null)
"autoSnapProgressStrokeWidth": autoSnapProgressStrokeWidth,
if (autoSnapProgressEnabled != null)
"autoSnapProgressEnabled": autoSnapProgressEnabled,
if (cornerRadius != null) "cornerRadius": cornerRadius,
};
}