TransactionCreate.fromJson constructor

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

Implementation

factory TransactionCreate.fromJson(Map<String, dynamic> data) {
  return TransactionCreate(
      gasPrice: parseBigInt(data['gasPrice']),
      gasLimit: parseBigInt(data['gasLimit']),
      maturity: data['maturity'],
      bytecodeLength: data['bytecodeLength'],
      bytecodeWitnessIndex: data['bytecodeWitnessIndex'],
      salt: data['salt'],
      storageSlots: _parseStorageSlots(data),
      inputs: _parseInputs(data),
      outputs: _parseOutputs(data),
      witnesses: _parseWitnesses(data));
}