getProfileById method
Get profile by id
Information for a single profile. Use this endpoint when you know the profile_id.
https://docs.cloud.coinbase.com/exchange/reference/exchangerestapi_getprofile
Implementation
Future<Profile> getProfileById({
required String profileId,
bool? active,
}) async {
var response =
await _profilesRestClient.getProfileById(profileId: profileId);
if (response.statusCode != 200) throw response;
return Profile.fromJson(json.decode(response.body));
}