operationDepositMethods method

Future<List<OperationDepositMethods$Query$OperationDepositMethods>> operationDepositMethods(
  1. CountryCode country,
  2. Currency? currency
)

Returns information about available OperationDepositMethods for the authenticated MyUser.

Implementation

Future<List<OperationDepositMethods$Query$OperationDepositMethods>>
operationDepositMethods(CountryCode country, Currency? currency) async {
  Log.debug('OperationDepositMethods($country, $currency)', '$runtimeType');

  final variables = OperationDepositMethodsArguments(
    country: country,
    currency: currency,
  );
  final QueryResult result = await client.query(
    QueryOptions(
      operationName: 'OperationDepositMethods',
      document: OperationDepositMethodsQuery(variables: variables).document,
      variables: variables.toJson(),
    ),
  );

  return OperationDepositMethods$Query.fromJson(
    result.data!,
  ).operationDepositMethods;
}