InterventionTask.fromJson constructor
Implementation
factory InterventionTask.fromJson(Map<String, dynamic> data) =>
switch (data[Task.keyType]) {
CheckmarkTask.taskType => CheckmarkTask.fromJson(data),
_ => throw UnknownJsonTypeError(data[Task.keyType]),
};