getMembership method

Future<GetMembershipResponse> getMembership({
  1. required String membershipId,
})

Returns the attributes of a membership.

Parameter membershipId : Required element for GetMembership to identify the membership ID to query.

Implementation

Future<GetMembershipResponse> getMembership({
  required String membershipId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/membership/${Uri.encodeComponent(membershipId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetMembershipResponse.fromJson(response);
}