toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "jsonrpc": jsonrpc,
      "id": id,
      "result": result.toJson(),
      "error": error.toJson(),
    };