/*
 * @Author: XianKaiQun
 * @Date: 2020-07-15 16:04:08
 * @LastEditors: XianKaiQun
 * @LastEditTime: 2020-07-15 16:04:32
 * @Description: 
 */
///任务仪表盘 - 登录人员部门角色下的任务总计
class DashboardDepartmentModel {
  num? allExcutiveCount;
  num? onTimeFinishedCount;
  num? onTimeFinishedRate;
  num? timeOutFinishedCount;
  num? timeOutFinishedRate;
  num? noOpenCount;
  num? noOpenRate;
  num? doingCount;
  num? doingRate;
  num? yearExcutiveCount;
  num? yearOnTimeFinishedCount;
  num? yearOnTimeFinishedRate;
  num? yearTimeOutFinishedCount;
  num? yearTimeOutFinishedRate;
  num? yearNoOpenCount;
  num? yearNoOpenRate;
  num? yearDoingCount;
  num? yearDoingRate;

  DashboardDepartmentModel({
    this.allExcutiveCount,
    this.onTimeFinishedCount,
    this.onTimeFinishedRate,
    this.timeOutFinishedCount,
    this.timeOutFinishedRate,
    this.noOpenCount,
    this.noOpenRate,
    this.doingCount,
    this.doingRate,
    this.yearExcutiveCount,
    this.yearOnTimeFinishedCount,
    this.yearOnTimeFinishedRate,
    this.yearTimeOutFinishedCount,
    this.yearTimeOutFinishedRate,
    this.yearNoOpenCount,
    this.yearNoOpenRate,
    this.yearDoingCount,
    this.yearDoingRate,
  });

  DashboardDepartmentModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    allExcutiveCount = map['allExcutiveCount'];
    onTimeFinishedCount = map['onTimeFinishedCount'];
    onTimeFinishedRate = map['onTimeFinishedRate'];
    timeOutFinishedCount = map['timeOutFinishedCount'];
    timeOutFinishedRate = map['timeOutFinishedRate'];
    noOpenCount = map['noOpenCount'];
    noOpenRate = map['noOpenRate'];
    doingCount = map['doingCount'];
    doingRate = map['doingRate'];
    yearExcutiveCount = map['yearExcutiveCount'];
    yearOnTimeFinishedCount = map['yearOnTimeFinishedCount'];
    yearOnTimeFinishedRate = map['yearOnTimeFinishedRate'];
    yearTimeOutFinishedCount = map['yearTimeOutFinishedCount'];
    yearTimeOutFinishedRate = map['yearTimeOutFinishedRate'];
    yearNoOpenCount = map['yearNoOpenCount'];
    yearNoOpenRate = map['yearNoOpenRate'];
    yearDoingCount = map['yearDoingCount'];
    yearDoingRate = map['yearDoingRate'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['allExcutiveCount'] = this.allExcutiveCount;
    json['onTimeFinishedCount'] = this.onTimeFinishedCount;
    json['onTimeFinishedRate'] = this.onTimeFinishedRate;
    json['timeOutFinishedCount'] = this.timeOutFinishedCount;
    json['timeOutFinishedRate'] = this.timeOutFinishedRate;
    json['noOpenCount'] = this.noOpenCount;
    json['noOpenRate'] = this.noOpenRate;
    json['doingCount'] = this.doingCount;
    json['doingRate'] = this.doingRate;
    json['yearExcutiveCount'] = this.yearExcutiveCount;
    json['yearOnTimeFinishedCount'] = this.yearOnTimeFinishedCount;
    json['yearOnTimeFinishedRate'] = this.yearOnTimeFinishedRate;
    json['yearTimeOutFinishedCount'] = this.yearTimeOutFinishedCount;
    json['yearTimeOutFinishedRate'] = this.yearTimeOutFinishedRate;
    json['yearNoOpenCount'] = this.yearNoOpenCount;
    json['yearNoOpenRate'] = this.yearNoOpenRate;
    json['yearDoingCount'] = this.yearDoingCount;
    json['yearDoingRate'] = this.yearDoingRate;

    return json;
  }
}
