getForms method

Future<Iterable<Form>> getForms()

Gets all forms

Implementation

Future<Iterable<Form>> getForms() async {
  final response = await _get('/api/form');

  return response.data['items'].map<Form>((e) => Form.fromJson(e));
}