Plan.fromJson constructor

Plan.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Plan.fromJson(Map<String, dynamic> json) {
  return Plan(
    nonPharmacologicalIntervention: json['non_pharmacological_intervention'] as String?,
    medications: json['medications'] as String?,
    referrals: json['referrals'] as String?,
    followUpInstructions: json['follow_up_instructions'] as String?,
  );
}