toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "x_coordinate": xCoordinate,
      "y_coordinate": yCoordinate,
      "heading": heading,
      "headingTextColor": headingTextColor,
      "headingFontSize": headingFontSize,
      "headingFontWeight": headingFontWeight,
      "headingHasAdvancedOptions": headingHasAdvancedOptions,
      "headingAlignment": headingAlignment,
      "headingMargin": headingMargin?.toJson(),
      "body": body,
      "bodyTextColor": bodyTextColor,
      "bodyFontSize": bodyFontSize,
      "bodyFontWeight": bodyFontWeight,
      "bodyHasAdvancedOptions": bodyHasAdvancedOptions,
      "bodyAlignment": bodyAlignment,
      "bodyMargin": bodyMargin?.toJson(),
      "_id": id,
    };