Utxo.fromMap constructor

Utxo.fromMap(Map<String, dynamic> utxoMap)

Create Utxo instance from utxo Map

Implementation

Utxo.fromMap(Map<String, dynamic> utxoMap) :
  this.txid = utxoMap['txid'],
  this.vout = utxoMap['vout'],
  this.amount = utxoMap['amount'],
  this.satoshis = utxoMap['satoshis'],
  this.height = utxoMap.containsKey('height') ? utxoMap['height'] : null,
  this.confirmations = utxoMap['confirmations'];