AppliedIntervention.fromJson constructor
AppliedIntervention.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AppliedIntervention.fromJson(Map<String, dynamic> json) {
return AppliedIntervention(
id: json['id'] as String,
type: InterventionType.fromString(json['type'] as String),
description: json['description'] as String,
rationale: json['rationale'] as String,
ethosComponentId: json['ethosComponentId'] as String?,
before: json['before'] as Map<String, dynamic>?,
after: json['after'] as Map<String, dynamic>?,
);
}