SimpleRecipient.fromJson constructor

SimpleRecipient.fromJson(
  1. 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 SimpleRecipient.fromJson(List jsonList) => SimpleRecipient(
    ToplAddress.fromBase58(jsonList[0] as String),
    SimpleValue.fromJson(jsonList[1] as Map<String, dynamic>));