toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{};
if (align != null) {
json['align'] = align;
}
if (rotation != null) {
json['rotation'] = rotation;
}
if (style != null) {
json['style'] = style!.toJson();
}
if (text != null) {
json['text'] = text;
}
if (textAlign != null) {
json['textAlign'] = textAlign;
}
if (useHTML != null) {
json['useHTML'] = useHTML;
}
if (verticalAlign != null) {
json['verticalAlign'] = verticalAlign;
}
if (x != null) {
json['x'] = x;
}
if (y != null) {
json['y'] = y;
}
return json;
}