toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  final Map<String, dynamic> json = <String, dynamic>{};
  if (align != null) {
    json['align'] = align;
  }
  if (allowOverlap != null) {
    json['allowOverlap'] = allowOverlap;
  }
  if (autoRotation != null) {
    json['autoRotation'] = autoRotation;
  }
  if (autoRotationLimit != null) {
    json['autoRotationLimit'] = autoRotationLimit;
  }
  if (distance != null) {
    json['distance'] = distance;
  }
  if (enabled != null) {
    json['enabled'] = enabled;
  }
  if (format != null) {
    json['format'] = format;
  }
  if (maxStaggerLines != null) {
    json['maxStaggerLines'] = maxStaggerLines;
  }
  if (overflow != null) {
    json['overflow'] = overflow;
  }
  if (padding != null) {
    json['padding'] = padding;
  }
  if (position3d != null) {
    json['position3d'] = position3d;
  }
  if (reserveSpace != null) {
    json['reserveSpace'] = reserveSpace;
  }
  if (rotation != null) {
    json['rotation'] = rotation;
  }
  if (skew3d != null) {
    json['skew3d'] = skew3d;
  }
  if (staggerLines != null) {
    json['staggerLines'] = staggerLines;
  }
  if (step != null) {
    json['step'] = step;
  }
  if (style != null) {
    json['style'] = hcJsonValue(style);
  }
  if (useHTML != null) {
    json['useHTML'] = useHTML;
  }
  if (x != null) {
    json['x'] = x;
  }
  if (y != null) {
    json['y'] = y;
  }
  if (zIndex != null) {
    json['zIndex'] = zIndex;
  }
  return json;
}