createFromMap method
FutureOr<O>
createFromMap(
- Map<
String, dynamic> fields, { - EntityProvider? entityProvider,
- EntityCache? entityCache,
- EntityResolutionRules? resolutionRules,
Implementation
FutureOr<O> createFromMap(Map<String, dynamic> fields,
{EntityProvider? entityProvider,
EntityCache? entityCache,
EntityResolutionRules? resolutionRules}) {
try {
var ret = entityHandler.createFromMap(fields,
entityProvider: entityProvider,
entityCache: entityCache,
resolutionRules: resolutionRules);
return ret.then((o) => o, onError: (e, s) {
_log.severe(
"Error creating `${entityHandler.type}` from fields Map: $fields",
e,
s);
throw e;
});
} catch (e, s) {
_log.severe(
"Error creating `${entityHandler.type}` from fields Map: $fields",
e,
s);
rethrow;
}
}