class CreateCarePlanRequest { CreateCarePlanRequest({ this.eventDateTime, this.userId, this.addedby, this.noteDetails, this.noteType, this.title, this.flag, this.isHTML, this.healthNote, this.category, this.complaint, this.moodRating, }); int? eventDateTime; String? userId; String? addedby; String? noteDetails; String? noteType; String? title; bool? flag; bool? isHTML; String? healthNote; String? category; String? complaint; String? moodRating; //------------------------------------- Map toJson() { final map = {}; if (eventDateTime != null) map['eventDateTime'] = eventDateTime; if (userId != null) map['userId'] = userId; if (addedby != null) map['addedby'] = addedby; if (noteDetails != null) map['noteDetails'] = noteDetails; if (noteType != null) map['noteType'] = noteType; if (title != null) map['title'] = title; map['flag'] = flag ?? false; map['isHTML'] = isHTML ?? false; if (healthNote != null) map['healthNote'] = healthNote; if (category != null) map['category'] = category; if (complaint != null) map['complaint'] = complaint; if (moodRating != null) map['moodRating'] = moodRating; return map; } static String heightWeightHtmlReq( String height, String weight, String comments) { return """

Height - (CM): $height

Weight - (KG): $weight

Comments: $comments

"""; } static String injuryHealthIssueHtmlReq({ required String nameOfWitnesses, required String placeOfAccident, required String accidentDescription, required String recordOfInjury, required String conditionOfPatient, required String isParentContacted, String? howParentContacted, String? nameOfParentContacted, String? parentContactedTime, }) { String ifParentContactedHtml = (isParentContacted == "Yes") ? """

If Yes how parent was contacted?: $howParentContacted

Name of Parent Contacted: $nameOfParentContacted
Contacted at: $parentContactedTime

""" : ""; return """

Name of witnesses/adults present: $nameOfWitnesses

Place accident occured: $placeOfAccident

Description how the accident occured: $accidentDescription

Record of any injury and action taken: $recordOfInjury

Condition of the patient following of the accident: $conditionOfPatient

Parent Contacted: $isParentContacted

$ifParentContactedHtml """; } }