UserOperation.fromMap constructor

UserOperation.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory UserOperation.fromMap(Map<String, dynamic> map) {
  return UserOperation(
    sender: EthereumAddress.fromHex(map['sender']),
    nonce: BigInt.parse(map['nonce']),
    initCode: map['initCode'],
    callData: map['callData'],
    callGasLimit: BigInt.parse(map['callGasLimit']),
    verificationGasLimit: BigInt.parse(map['verificationGasLimit']),
    preVerificationGas: BigInt.parse(map['preVerificationGas']),
    maxFeePerGas: BigInt.parse(map['maxFeePerGas']),
    maxPriorityFeePerGas: BigInt.parse(map['maxPriorityFeePerGas']),
    signature: map['signature'],
    paymasterAndData: map['paymasterAndData'],
  );
}