toJson method
Implementation
Map<String, dynamic> toJson() => {
"backgroundColor": backgroundColor,
"cornerRadius": cornerRadius,
"fillType": fillTypeValues.reverse[fillType],
"fontName": fontName,
"fontSize": fontSize,
"offset.x": offsetX,
"offset.y": offsetY,
"positionXAlignment": positionXAlignmentValues.reverse[positionXAlignment],
"positionYAlignment": positionYAlignmentValues.reverse[positionYAlignment],
"textColor": textColor,
"textColorHighlighted": textColorHighlighted,
"title": title,
};