SendArgs.fromJson constructor

SendArgs.fromJson(
  1. Map map
)

Implementation

factory SendArgs.fromJson(Map map) {
  return SendArgs(
    to: map['to'],
    fee: ICPTs.fromJson(map['fee']),
    memo: map['memo'],
    amount: ICPTs.fromJson(map['amount']),
    fromSubAccount: map['from_subaccount'] != null
        ? List<int>.from(map['from_subaccount'])
        : null,
    createdAtTime: map['created_at_time'] != null
        ? TimeStamp.fromJson(map['created_at_time'])
        : null,
  );
}