toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'id': id,
      'text': text,
      'x': x,
      'y': y,
      'fontSize': fontSize,
      'color': color.toARGB32(),
      'startMs': startTime.inMilliseconds,
      'endMs': endTime?.inMilliseconds,
      'rotation': rotation,
      'scale': scale,
      'style': style.name,
      'backgroundColor': backgroundColor.toARGB32(),
      'bold': bold,
      'stickerPath': ?stickerPath,
    };