IUserOperation.fromJson constructor

IUserOperation.fromJson(
  1. Map<String, dynamic> json
)

Factory constructor that creates an instance of IUserOperation from a Map (typically from JSON).

Implementation

factory IUserOperation.fromJson(Map<String, dynamic> json) => IUserOperation(
      sender: json["sender"],
      nonce: json["nonce"],
      initCode: json["initCode"],
      callData: json["callData"],
      callGasLimit: json["callGasLimit"],
      verificationGasLimit: json["verificationGasLimit"],
      preVerificationGas: json["preVerificationGas"],
      maxFeePerGas: json["maxFeePerGas"],
      maxPriorityFeePerGas: json["maxPriorityFeePerGas"],
      paymasterAndData: json["paymasterAndData"],
      signature: json["signature"],
    );