| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import 'package:json_annotation/json_annotation.dart';
- part 'today_overview_model.g.dart';
- /// 今日概况模型
- @JsonSerializable()
- class TodayOverviewModel {
- @JsonKey(name: 'today_arrived_total')
- final int? todayArrivedTotal; // 预约到诊人数
- @JsonKey(name: 'today_appointment_total')
- final int todayAppointmentTotal; // 今日预约人数
- @JsonKey(name: 'today_registration_total')
- final int? todayRegistrationTotal; // 今日挂号人数
- @JsonKey(name: 'today_visit_total')
- final int? todayVisitTotal; // 今日就诊人数
- @JsonKey(name: 'today_new_patient_total')
- final int? todayNewPatientTotal; // 今日新增患者
- @JsonKey(name: 'today_revenue_total')
- final int? todayRevenueTotal; // 今日收入
- @JsonKey(name: 'today_average_order_price')
- final int? todayAverageOrderPrice; // 今日客单价
- @JsonKey(name: 'inventory_warning_count')
- final int? inventoryWarningCount; // 库存预警品种数量
- @JsonKey(name: 'validity_warning_count')
- final int? validityWarningCount; // 效期预警品种数量
- TodayOverviewModel({
- this.todayArrivedTotal,
- required this.todayAppointmentTotal,
- this.todayRegistrationTotal,
- this.todayVisitTotal,
- this.todayNewPatientTotal,
- this.todayRevenueTotal,
- this.todayAverageOrderPrice,
- this.inventoryWarningCount,
- this.validityWarningCount
- });
- /// 从 JSON 创建 TodayOverviewModel
- factory TodayOverviewModel.fromJson(Map<String, dynamic> json) =>
- _$TodayOverviewModelFromJson(json);
- /// 转换为 JSON
- Map<String, dynamic> toJson() => _$TodayOverviewModelToJson(this);
- }
|