getProfiles method
Get profiles
Gets a list of all of the current user's profiles.
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getprofiles
Implementation
Future<List<Profile>> getProfiles({
bool? active,
}) async {
var response = await _profilesRestClient.getProfiles(active: active);
if (response.statusCode != 200) throw response;
return listDecode(response.body)
.map((product) => Profile.fromJson(product))
.toList();
}