Form constructor

Form(
  1. Uri href, {
  2. String contentType = _defaultContentType,
  3. String? contentCoding,
  4. String? subprotocol,
  5. List<String>? security,
  6. List<OperationType>? op,
  7. List<String>? scopes,
  8. ExpectedResponse? response,
  9. List<AdditionalExpectedResponse>? additionalResponses,
  10. Map<String, dynamic>? additionalFields,
})

Creates a new Form object.

An href has to be provided. A contentType is optional.

Implementation

Form(
  this.href, {
  this.contentType = _defaultContentType,
  this.contentCoding,
  this.subprotocol,
  this.security,
  this.op,
  this.scopes,
  this.response,
  this.additionalResponses,
  Map<String, dynamic>? additionalFields,
}) {
  if (additionalFields != null) {
    this.additionalFields.addAll(additionalFields);
  }
}