toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'rect': rect.toJson(),
'shape': shape.toJson(),
if (borderRadius != null) 'borderRadius': borderRadius,
if (upperRadius != null) 'upperRadius': upperRadius,
if (lowerRadius != null) 'lowerRadius': lowerRadius,
if (cx != null) 'cx': cx,
if (cy != null) 'cy': cy,
if (radius != null) 'radius': radius,
if (contentColor != null) 'contentColor': contentColor!.toJson(),
};
}