This repository has been archived on 2024-10-18. You can view files and clone it, but cannot push or open issues or pull requests.
ftc_patient_app/lib/models/clients/allCareNotes/CareNoteData.dart

43 lines
908 B
Dart

import 'CarePlans.dart';
class CareNoteData {
CareNoteData({
this.carePlans,
this.count,
this.carePlanCount,
this.offset,
this.limit,
});
CareNoteData.fromJson(dynamic json) {
if (json['carePlans'] != null) {
carePlans = [];
json['carePlans'].forEach((v) {
carePlans?.add(CarePlan.fromJson(v));
});
}
count = json['count'];
carePlanCount = json['carePlanCount'];
offset = json['offset'];
limit = json['limit'];
}
List<CarePlan>? carePlans;
int? count;
int? carePlanCount;
int? offset;
int? limit;
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (carePlans != null) {
map['carePlans'] = carePlans?.map((v) => v.toJson()).toList();
}
map['count'] = count;
map['carePlanCount'] = carePlanCount;
map['offset'] = offset;
map['limit'] = limit;
return map;
}
}