Resource.fromJson constructor
Implementation
factory Resource.fromJson(Map<String, dynamic> j) => Resource(
attributes: (j['attributes'] as List<dynamic>? ?? [])
.cast<Map<String, dynamic>>()
.map(Attribute.fromJson)
.toList(),
);