toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (showInfo != null) 'showInfo': showInfo,
    if (showStyles != null) 'showStyles': showStyles,
    if (showRulers != null) 'showRulers': showRulers,
    if (showAccessibilityInfo != null)
      'showAccessibilityInfo': showAccessibilityInfo,
    if (showExtensionLines != null) 'showExtensionLines': showExtensionLines,
    if (contentColor != null) 'contentColor': contentColor!.toJson(),
    if (paddingColor != null) 'paddingColor': paddingColor!.toJson(),
    if (borderColor != null) 'borderColor': borderColor!.toJson(),
    if (marginColor != null) 'marginColor': marginColor!.toJson(),
    if (eventTargetColor != null)
      'eventTargetColor': eventTargetColor!.toJson(),
    if (shapeColor != null) 'shapeColor': shapeColor!.toJson(),
    if (shapeMarginColor != null)
      'shapeMarginColor': shapeMarginColor!.toJson(),
    if (cssGridColor != null) 'cssGridColor': cssGridColor!.toJson(),
    if (colorFormat != null) 'colorFormat': colorFormat!.toJson(),
    if (gridHighlightConfig != null)
      'gridHighlightConfig': gridHighlightConfig!.toJson(),
    if (flexContainerHighlightConfig != null)
      'flexContainerHighlightConfig': flexContainerHighlightConfig!.toJson(),
    if (flexItemHighlightConfig != null)
      'flexItemHighlightConfig': flexItemHighlightConfig!.toJson(),
    if (contrastAlgorithm != null)
      'contrastAlgorithm': contrastAlgorithm!.toJson(),
    if (containerQueryContainerHighlightConfig != null)
      'containerQueryContainerHighlightConfig':
          containerQueryContainerHighlightConfig!.toJson(),
  };
}