import 'package:json_annotation/json_annotation.dart'; part 'today_wait_model.g.dart'; /// 今日待办模型 @JsonSerializable() class TodayWaitModel { @JsonKey(name: 'today_wait_charged') final int? todayWaitCharged; // 收费 @JsonKey(name: 'today_wait_medicine') final int? todayWaitMedicine; // 发药 @JsonKey(name: 'today_wait_outpatient') final int? todayWaitOutpatient; // 门诊 TodayWaitModel({ this.todayWaitCharged, this.todayWaitMedicine, this.todayWaitOutpatient }); /// 从 JSON 创建 TodayWaitModel factory TodayWaitModel.fromJson(Map json) => _$TodayWaitModelFromJson(json); /// 转换为 JSON Map toJson() => _$TodayWaitModelToJson(this); }