InputCoin.fromJson constructor

InputCoin.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory InputCoin.fromJson(Map<String, dynamic> data) {
  return InputCoin(
    owner: addHexPrefix(data['owner']),
    amount: parseBigInt(data['amount']),
    assetId: addHexPrefix(data['assetId']),
    witnessIndex: data['witnessIndex'],
  );
}