toJson method

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

Serializes an Holds to its JSON representation.

Implementation

@override
Map<String, dynamic> toJson() => {
      if (total != null) "total": total,
      if (position != null) "position": position,
    };