buildResource<T extends PcoResource> function
Null safety
Implementation
PcoResource? buildResource<T extends PcoResource>(
String application, Map<String, dynamic> data,
{List<Map<String, dynamic>> withIncluded = const []}) {
var key = application + '-' + (data['type'] ?? 'null');
if (_constructors.containsKey(key)) {
return _constructors[key]!(data, withIncluded: withIncluded);
}
return null;
}