PcoResource.fromJson constructor
PcoResource.fromJson( )
Implementation
PcoResource.fromJson(
this.pcoApplication,
this.resourceType,
Map<String, dynamic> data, {
List<Map<String, dynamic>>? withIncluded,
}) {
if (!data.containsKey('type')) {
print(data);
throw FormatException(
'data supplied does not meet JSON:API specs. No "type" field found');
}
fromJson(data, withIncluded: withIncluded);
}