getFormById method

Future<Form> getFormById(
  1. int id
)

Gets form by id

Implementation

Future<Form> getFormById(int id) async {
  final response = await _get('/api/form/$id');

  return Form.fromJson(response.data);
}