PlanningCenterApiData.fromJson constructor

PlanningCenterApiData.fromJson(
  1. Map<String, dynamic> data
)

Implementation

PlanningCenterApiData.fromJson(Map<String, dynamic> data)
    : type = data['type'] ?? 'unknown',
      id = data['id'],
      attributes = data['attributes'] ?? {},
      relationships = data['relationships'] ?? {},
      links = data['links'] ?? {};