toJson method

Map<String, dynamic> toJson()

Converts the IUserOperation to a Map.

Returns a Map where keys are field names and values are their corresponding values.

Implementation

Map<String, dynamic> toJson() => {
      "sender": sender,
      "nonce": nonce,
      "initCode": initCode,
      "callData": callData,
      "callGasLimit": callGasLimit,
      "verificationGasLimit": verificationGasLimit,
      "preVerificationGas": preVerificationGas,
      "maxFeePerGas": maxFeePerGas,
      "maxPriorityFeePerGas": maxPriorityFeePerGas,
      "paymasterAndData": paymasterAndData,
      "signature": signature,
    };