43 lines
908 B
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;
|
|
}
|
|
}
|