toJson method
Implementation
@override
Map<String, dynamic> toJson() => {
...super.toJson(),
'clip': clip,
if (backgroundColor != null)
'backgroundColor': backgroundColor?.toJson(),
if (borderColor != null) 'borderColor': borderColor?.toJson(),
'borderSize': borderSize,
'graphic': graphic.toJson(),
};