toForm method

  1. @override
List<MBMultipartForm>? toForm()
override

Converts the element to an array of MBMultipartForm representing it.

Implementation

@override
List<MBMultipartForm>? toForm() {
  if (value) {
    return [MBMultipartForm.name(parameterName, "on")];
  }
  return null;
}