toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'group_code': groupCode,
    'group_order': groupOrder,
    'x': x,
    'y': y,
    'dash_pattern': json.encode(dashPattern),
    'color': _colorToString(color),
    'fill_color': _colorToString(fillColor),
    'ys': _toJsonList(ys),
    'x_display': xDisplay,
    'y_display': yDisplay,
    'order_id': _toDynamic(orderId),
    'y_axis': yAxis,
    'y_axis_name': yAxisName,
    'render_id': renderId
  };
}