parse static method
Implementation
static HeartbeatDuration parse(Map<String, dynamic> json) {
if (json.containsKey('type')) {
return ProjectHeartbeatDuration.fromJson(json);
} else {
return SimpleHeartbeatDuration.fromJson(json);
}
}
static HeartbeatDuration parse(Map<String, dynamic> json) {
if (json.containsKey('type')) {
return ProjectHeartbeatDuration.fromJson(json);
} else {
return SimpleHeartbeatDuration.fromJson(json);
}
}