relationToRest<T extends OfflineFirstWithRestModel> method
Null safety
- OfflineFirstWithRestAdapter<
T> adapter, - T relationValue,
- dynamic provider,
- dynamic repository
Example
@Rest(toGenerator: 'await SyncGeneratorHelper.relationToRest<Run>(RunAdapter(), %INSTANCE_PROPERTY%, provider, repository)',)
final Run run;
Implementation
static Future<Map<String, dynamic>> relationToRest<
T extends OfflineFirstWithRestModel>(
OfflineFirstWithRestAdapter<T> adapter,
T relationValue,
provider,
repository) =>
adapter.toRest(relationValue, provider: provider, repository: repository);