Serializes the object to a map.
@override Map<String, dynamic> serialize() { return {"key": key.value, "supply": supply, "maxSupply": maxSupply}; }