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 (stroke != null) {
    json['stroke'] = stroke;
  }
  if (width != null) {
    json['width'] = width;
  }
  return json;
}