toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{};
if (align != null) {
json['align'] = align;
}
if (alignTo != null) {
json['alignTo'] = alignTo;
}
if (allowOverlap != null) {
json['allowOverlap'] = allowOverlap;
}
if (animation != null) {
json['animation'] = hcJsonValue(animation);
}
if (backgroundColor != null) {
json['backgroundColor'] = hcJsonValue(backgroundColor);
}
if (borderColor != null) {
json['borderColor'] = hcJsonValue(borderColor);
}
if (borderRadius != null) {
json['borderRadius'] = borderRadius;
}
if (borderWidth != null) {
json['borderWidth'] = borderWidth;
}
if (className != null) {
json['className'] = className;
}
if (color != null) {
json['color'] = hcJsonValue(color);
}
if (crop != null) {
json['crop'] = crop;
}
if (defer != null) {
json['defer'] = defer;
}
if (distance != null) {
json['distance'] = distance;
}
if (enabled != null) {
json['enabled'] = enabled;
}
if (filter != null) {
json['filter'] = filter!.toJson();
}
if (format != null) {
json['format'] = format;
}
if (inside != null) {
json['inside'] = inside;
}
if (labelrank != null) {
json['labelrank'] = labelrank;
}
if (nullFormat != null) {
json['nullFormat'] = hcJsonValue(nullFormat);
}
if (overflow != null) {
json['overflow'] = overflow;
}
if (padding != null) {
json['padding'] = hcJsonValue(padding);
}
if (position != null) {
json['position'] = position;
}
if (rotation != null) {
json['rotation'] = rotation;
}
if (shadow != null) {
json['shadow'] = hcJsonValue(shadow);
}
if (shape != null) {
json['shape'] = shape;
}
if (style != null) {
json['style'] = style!.toJson();
}
if (textPath != null) {
json['textPath'] = textPath!.toJson();
}
if (useHTML != null) {
json['useHTML'] = useHTML;
}
if (verticalAlign != null) {
json['verticalAlign'] = verticalAlign;
}
if (x != null) {
json['x'] = x;
}
if (y != null) {
json['y'] = y;
}
if (zIndex != null) {
json['zIndex'] = zIndex;
}
return json;
}