Collection.fromJson constructor

Collection.fromJson(
  1. Map<String, dynamic> json
)

Constructs a Collection from a JSON map.

This method uses the generated _$CollectionFromJson function to deserialize the json object. The JSON object must have the required keys: 'collectionName', 'collectionSymbol', and 'collectionAddress'.

Implementation

factory Collection.fromJson(Map<String, dynamic> json) =>
    _$CollectionFromJson(json);