InputContract.fromJson constructor

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

Implementation

factory InputContract.fromJson(Map<String, dynamic> data) {
  return InputContract(
      utxoID: UtxoId.fromJson(data['utxoID']),
      balanceRoot: data['balanceRoot'],
      stateRoot: data['stateRoot'],
      txPointer: TxPointer.fromJson(data['txPointer']),
      contractID: addHexPrefix(data['contractID']));
}