toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (showGridExtensionLines != null)
      'showGridExtensionLines': showGridExtensionLines,
    if (showPositiveLineNumbers != null)
      'showPositiveLineNumbers': showPositiveLineNumbers,
    if (showNegativeLineNumbers != null)
      'showNegativeLineNumbers': showNegativeLineNumbers,
    if (showAreaNames != null) 'showAreaNames': showAreaNames,
    if (showLineNames != null) 'showLineNames': showLineNames,
    if (showTrackSizes != null) 'showTrackSizes': showTrackSizes,
    if (gridBorderColor != null) 'gridBorderColor': gridBorderColor!.toJson(),
    if (rowLineColor != null) 'rowLineColor': rowLineColor!.toJson(),
    if (columnLineColor != null) 'columnLineColor': columnLineColor!.toJson(),
    if (gridBorderDash != null) 'gridBorderDash': gridBorderDash,
    if (rowLineDash != null) 'rowLineDash': rowLineDash,
    if (columnLineDash != null) 'columnLineDash': columnLineDash,
    if (rowGapColor != null) 'rowGapColor': rowGapColor!.toJson(),
    if (rowHatchColor != null) 'rowHatchColor': rowHatchColor!.toJson(),
    if (columnGapColor != null) 'columnGapColor': columnGapColor!.toJson(),
    if (columnHatchColor != null)
      'columnHatchColor': columnHatchColor!.toJson(),
    if (areaBorderColor != null) 'areaBorderColor': areaBorderColor!.toJson(),
    if (gridBackgroundColor != null)
      'gridBackgroundColor': gridBackgroundColor!.toJson(),
  };
}