toJson method

  1. @override
Map<String, dynamic> toJson()
override

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(),
    };