import 'dart:async'; import 'package:angel3_client/angel3_client.dart'; Future doSomething(Angel app) async { var userService = app .service>('api/users') .map(User.fromMap, User.toMap); var users = await (userService.index() as FutureOr>); print('Name: ${users.first.name}'); } class User { final String? name; User({this.name}); static User fromMap(Map data) => User(name: data['name'] as String?); static Map toMap(User user) => {'name': user.name}; }