toJson method

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

Implementation

@override
Map<String, dynamic> toJson() {
  final Map<String, dynamic> json = <String, dynamic>{};
  json['groupingLevel'] = pointsGroupingZoomLevel;
  if (lowDensityPointsGroupImage != null) {
    json['lowDensityGroupImage'] = lowDensityPointsGroupImage;
  }
  json['lowGroupMaxCount'] = lowDensityPointsGroupMaxCount;
  if (mediumDensityPointsGroupImage != null) {
    json['mediumDensityGroupImage'] = mediumDensityPointsGroupImage;
  }
  json['mediumGroupMaxCount'] = mediumDensityPointsGroupMaxCount;
  if (highDensityPointsGroupImage != null) {
    json['highDensityGroupImage'] = highDensityPointsGroupImage;
  }
  json['groupLabelTextColor'] = labelGroupTextColor.toRgba();
  json['groupLabelTextSize'] = labelGroupTextSize;
  json['buildGroupConfig'] = buildPointsGroupConfig;
  if (polylineTexture != null) {
    json['polylineTexture'] = polylineTexture;
  }
  if (polygonTexture != null) {
    json['polygonTexture'] = polygonTexture;
  }
  if (image != null) {
    json['image'] = image;
  }
  json['polylineInnerColor'] = polylineInnerColor.toRgba();
  json['polylineOuterColor'] = polylineOuterColor.toRgba();
  json['polygonFillColor'] = polygonFillColor.toRgba();
  json['labelTextColor'] = labelTextColor.toRgba();
  if (imagePointer != null) {
    json['imagePointer'] = imagePointer;
  }
  if (imagePointerSize != null) {
    json['imagePointerSize'] = imagePointerSize;
  }

  json['imageSize'] = imageSize;
  json['labelingMode'] = packedLabelingMode;
  json['labelTextSize'] = labelTextSize;
  json['labelTextColor'] = labelTextColor.toRgba();
  json['hashCode'] = json.hashCode;
  json['polylineInnerSize'] = polylineInnerSize;
  json['polylineOuterSize'] = polylineOuterSize;
  return json;
}