InputCoin.fromJson constructor

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

Implementation

factory InputCoin.fromJson(Map<String, dynamic> data) {
  return InputCoin(
      utxoID: UtxoId.fromJson(data['utxoID']),
      owner: addHexPrefix(data['owner']),
      amount: parseBigInt(data['amount']),
      assetId: addHexPrefix(data['assetId']),
      txPointer: TxPointer.fromJson(data['txPointer']),
      witnessIndex: data['witnessIndex'],
      maturity: data['maturity'],
      predicateLength: data['predicateLength'],
      predicateDataLength: data['predicateDataLength'],
      predicate: data['predicate'],
      predicateData: data['predicateData']);
}