fromJSON static method

Block fromJSON(
  1. Map<String, dynamic> data
)

Implementation

static Block fromJSON(Map<String, dynamic> data) {
  return Block(
    identifiables: data["identifiables"]?.map<Identifiable>((e) => Identifiable.fromJSON(e)).toList(),
    healthData: data["healthData"] != null ? HealthData.fromJSON(data["healthData"]) : null
  );
}