toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (imcbBorderColor != null) 'imcbBorderColor': imcbBorderColor!.toJson(),
    if (imcbBackgroundColor != null)
      'imcbBackgroundColor': imcbBackgroundColor!.toJson(),
    if (insetsBackgroundColor != null)
      'insetsBackgroundColor': insetsBackgroundColor!.toJson(),
    if (insetsHatchColor != null)
      'insetsHatchColor': insetsHatchColor!.toJson(),
    if (anchorBorderColor != null)
      'anchorBorderColor': anchorBorderColor!.toJson(),
    if (anchorBackgroundColor != null)
      'anchorBackgroundColor': anchorBackgroundColor!.toJson(),
    if (showPositionAreaGrid != null)
      'showPositionAreaGrid': showPositionAreaGrid,
    if (positionAreaGridLineColor != null)
      'positionAreaGridLineColor': positionAreaGridLineColor!.toJson(),
    if (positionAreaActiveRegionColor != null)
      'positionAreaActiveRegionColor': positionAreaActiveRegionColor!
          .toJson(),
  };
}