/*
 * @Author: XianKaiQun
 * @Date: 2020-04-27 15:20:57
 * @LastEditors: XianKaiQun
 * @LastEditTime: 2020-07-22 08:59:36
 * @Descripttion: 
 */
///个人任务管理

class PersonModel {
  String? currentMonth;
  num? finishedRate;
  num? cost;
  num? monthFinishedCount;
  num? monthTodoCount;
  num? myFinishedCount;
  num? myTodoCount;
  num? createFinishedCount;
  num? createTodoCount;
  num? mailToMyFinishedCount;
  num? mailToMyUnfinishCount;

  PersonModel({
    this.currentMonth,
    this.finishedRate,
    this.cost,
    this.monthFinishedCount,
    this.monthTodoCount,
    this.myFinishedCount,
    this.myTodoCount,
    this.createFinishedCount,
    this.createTodoCount,
    this.mailToMyFinishedCount,
    this.mailToMyUnfinishCount,
  });

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

    currentMonth = map['currentMonth'];
    finishedRate = map['finishedRate'];
    cost = map['cost'];
    monthFinishedCount = map['monthFinishedCount'];
    monthTodoCount = map['monthTodoCount'];
    myFinishedCount = map['myFinishedCount'];
    myTodoCount = map['myTodoCount'];
    createFinishedCount = map['createFinishedCount'];
    createTodoCount = map['createTodoCount'];
    mailToMyFinishedCount = map['mailToMyFinishedCount'];
    mailToMyUnfinishCount = map['mailToMyUnfinishCount'];
  }

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

    json['currentMonth'] = this.currentMonth;
    json['finishedRate'] = this.finishedRate;
    json['cost'] = this.cost;
    json['monthFinishedCount'] = this.monthFinishedCount;
    json['monthTodoCount'] = this.monthTodoCount;
    json['myFinishedCount'] = this.myFinishedCount;
    json['myTodoCount'] = this.myTodoCount;
    json['createFinishedCount'] = this.createFinishedCount;
    json['createTodoCount'] = this.createTodoCount;
    json['mailToMyFinishedCount'] = this.mailToMyFinishedCount;
    json['mailToMyUnfinishCount'] = this.mailToMyUnfinishCount;

    return json;
  }
}
