me method
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;
}
}