modelCatalog method
Every data model, and whether one designed here can also be written to the project's source -- true only on a development server.
Implementation
Future<({List<DVStudioModel> models, bool sourceWritable})>
modelCatalog() async {
final Map<String, Object?> body = _map(await _send('GET', 'api/models'));
return (
models: <DVStudioModel>[
for (final Map<String, Object?> model in _list(body, 'models'))
DVStudioModel.fromJson(model),
],
sourceWritable: body['sourceWritable'] == true,
);
}