toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "saveAsNewFile": saveAsNewFile,
      "outsideBackgroundColor": outsideBackgroundColor?.toHex(),
      "types": types.map((e) => e.name).toList(),
      "text": text,
      "image": image,
      "textSize": textSize,
      "textColor": textColor.toHex(),
      "scale": scale,
      "rotation": rotation,
      "opacity": opacity,
      "isFront": isFront,
      "isTilePage": isTilePage
    };