AssetRecipient.fromJson constructor
AssetRecipient.fromJson(
- List jsonList
A necessary factory constructor for creating a new Recipient instance
from a map. Pass the map to the generated _$RecipientFromJson()
constructor.
The constructor is named after the source class, in this case, Recipient.
Implementation
factory AssetRecipient.fromJson(List jsonList) => AssetRecipient(
ToplAddress.fromBase58(jsonList[0] as String),
AssetValue.fromJson(jsonList[1] as Map<String, dynamic>));