Flutter Data is extended via adapters.
mixin UserURLAdapter on RemoteAdapter<User> {
@override
String get baseUrl => 'https://my-json-server.typicode.com/flutterdata/demo';
}
Need to apply the adapter to all your models? Make it generic:
mixin UserURLAdapter<T extends DataModel<T>> on RemoteAdapter<T> {
@override
String get baseUrl => 'https://my-json-server.typicode.com/flutterdata/demo';
}