retrievePendingChildren method

Future<ClientResponse<PendingResponse, Errors>> retrievePendingChildren(
  1. String parentEmail
)

Retrieves all the children for the given parent email address.

@param {String} parentEmail The email of the parent. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<PendingResponse, Errors>> retrievePendingChildren(
    String parentEmail) {
  return _start<PendingResponse, Errors>()
      .withUri('/api/user/family/pending')
      .withParameter('parentEmail', parentEmail)
      .withMethod('GET')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => PendingResponse.fromJson(d)))
      .go();
}