toJson method

Map<String, Object?> toJson()

The JSON representation of this instance.

Implementation

Map<String, Object?> toJson() => {
      'pb': [
        paintBounds.left,
        paintBounds.top,
        paintBounds.right,
        paintBounds.bottom,
      ],
      't': type,
      'c': children.isEmpty ? null : children.map((c) => c.toJson()).toList(),
    };