retrieveForm method

Future<ClientResponse<FormResponse, void>> retrieveForm(
  1. String formId
)

Retrieves the form with the given Id.

@param {String} formId The Id of the form. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<FormResponse, void>> retrieveForm(String formId) {
  return _start<FormResponse, void>()
      .withUri('/api/form')
      .withUriSegment(formId)
      .withMethod('GET')
      .withResponseHandler(
          defaultResponseHandlerBuilder((d) => FormResponse.fromJson(d)))
      .go();
}