toJson method
Implementation
Map<String, String> toJson() {
return {
"backgroundColor": backgroundColor ?? "",
"selectionFillColor": selectionFillColor ?? "",
"selectionShadowColor": selectionShadowColor ?? "",
"selectionStrokeColor": selectionStrokeColor ?? "",
"selectionTextColor": selectionTextColor ?? "",
"selectionCharacter": selectionCharacter ?? "",
"takePhotoIcon": takePhotoIcon ?? "",
"autoCloseOnSelectionLimit":
autoCloseOnSelectionLimit == true ? "true" : "false"
};
}