Resource.fromJson constructor

Resource.fromJson(
  1. Map<String, dynamic> j
)

Implementation

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