toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final json = super.toJson()
..remove('markState')
..remove('reviewState');
return {
...json,
'overlayText': overlayText,
'fillColor': fillColor.toHex(),
'outlineColor': outlineColor?.toHex(),
'textAttribute': textAttribute?.toJson(),
'alignment': alignment.name,
};
}