toJson method

Map<String, String> toJson()

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"
  };
}