toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  final Map<String, dynamic> json = <String, dynamic>{};
  if (dashStyle != null) {
    json['dashStyle'] = dashStyle;
  }
  if (fill != null) {
    json['fill'] = hcJsonValue(fill);
  }
  if (height != null) {
    json['height'] = height;
  }
  if (r != null) {
    json['r'] = r;
  }
  if (ry != null) {
    json['ry'] = ry;
  }
  if (snap != null) {
    json['snap'] = snap;
  }
  if (src != null) {
    json['src'] = src;
  }
  if (stroke != null) {
    json['stroke'] = hcJsonValue(stroke);
  }
  if (strokeWidth != null) {
    json['strokeWidth'] = strokeWidth;
  }
  if (type != null) {
    json['type'] = type;
  }
  if (width != null) {
    json['width'] = width;
  }
  if (xAxis != null) {
    json['xAxis'] = xAxis;
  }
  if (yAxis != null) {
    json['yAxis'] = yAxis;
  }
  return json;
}