toJson method

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

Serializes an Copies to its JSON representation.

Implementation

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