retrieveFamilyMembersByFamilyId method

Future<ClientResponse<FamilyResponse, void>> retrieveFamilyMembersByFamilyId(
  1. String familyId
)

Retrieves all the members of a family by the unique Family Id.

@param {String} familyId The unique Id of the Family. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<FamilyResponse, void>> retrieveFamilyMembersByFamilyId(
    String familyId) {
  return _start<FamilyResponse, void>()
      .withUri('/api/user/family')
      .withUriSegment(familyId)
      .withMethod('GET')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => FamilyResponse.fromJson(d)))
      .go();
}