me method

Future<Client?> me(
  1. String apiKey,
  2. String customerId
)

Implementation

Future<Client?> me(
  String apiKey,
  String customerId,
) async {
  try {
    final result = await dio.get(
      '${Config.url}/clients/me',
      options: Options(
        headers: {
          'Content-Type': 'application/json',
          'Accept': 'application/json',
          "x-api-key": apiKey,
          "x-customer": customerId,
        },
      ),
    );

    return Client.fromJson(result.data);
  } catch (e) {
    return null;
  }
}