toJson method

  1. @override
List toJson(
  1. List<Collectible> instance
)

Converts a list of Collectible instances to a list of JSON objects.

Implementation

@override
List<dynamic> toJson(List<Collectible> instance) => instance.toList();