toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
  'kind': kind.name,
  'outlineWidthCdp': outlineWidthCdp,
  'extrudeDepthCdp': extrudeDepthCdp,
  'shadowOffsetCdp': shadowOffsetCdp,
  'shadowBlurCdp': shadowBlurCdp,
  'opacityPermille': opacityPermille,
  'edgeShadePermille': edgeShadePermille,
  'stateLayerPermille': stateLayerPermille,
  if (frostPermille != 0) 'frostPermille': frostPermille,
  if (highlightPermille != 0) 'highlightPermille': highlightPermille,
  if (refractionPermille != 0) 'refractionPermille': refractionPermille,
};