toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'type': type.name,
      'title': title,
      'page': page,
      'uuid': uuid,
      'createDate': createDate?.toString(),
      'rect': rect.toString(),
      'borderColor': borderColor.toHex(),
      'fillColor': fillColor.toHex(),
      'borderWidth': borderWidth,
    };