toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  final Map<String, dynamic> json = <String, dynamic>{};
  if (backgroundColor != null) {
    json['backgroundColor'] = hcJsonValue(backgroundColor);
  }
  if (borderColor != null) {
    json['borderColor'] = hcJsonValue(borderColor);
  }
  if (borderWidth != null) {
    json['borderWidth'] = borderWidth;
  }
  if (distance != null) {
    json['distance'] = distance;
  }
  if (shape != null) {
    json['shape'] = shape;
  }
  if (style != null) {
    json['style'] = hcJsonValue(style);
  }
  return json;
}