getThemeForms method

Future<Iterable<ThemeForm>> getThemeForms(
  1. int id
)

Gets the theme forms of the given theme

Implementation

Future<Iterable<ThemeForm>> getThemeForms(int id) async {
  final response = await _get('/api/theme/$id/form');

  return response.data.keys.map<ThemeForm>((name) => ThemeForm(name: name, form: Form.fromJson(response.data[name])));
}