createForm method

Future<Form> createForm(
  1. String description,
  2. String title,
  3. String toAddress
)

Creates a new form with the given data

Implementation

Future<Form> createForm(String description, String title, String toAddress) async {
  final response = await _post('/api/form', data: {
    'description': description,
    'title': title,
    'toAddress': toAddress,
  });

  return Form.fromJson(response.data);
}