/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2021-03-22 16:37:13
 * @LastEditTime : 2021-03-31 15:39:26
 * @FilePath     : /wisdom-huiguanjia-app/oa_package/lib/src/models/tast_history_list_model.dart
 * @Description  : 我发起的任务列表model
 */

class TaskHistoryListModel {
  String? processName;
  String? groupName;
  String? creator;
  String? organName;
  String? orderId;
  String? taskName;
  dynamic operator;
  String? starTime;
  num? useTime;
  num? totalTime;
  String? type;
  String? status;

  TaskHistoryListModel({
    this.processName,
    this.groupName,
    this.creator,
    this.organName,
    this.orderId,
    this.taskName,
    this.operator,
    this.starTime,
    this.useTime,
    this.totalTime,
    this.type,
    this.status,
  });

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

    processName = map['processName'];
    groupName = map['groupName'];
    creator = map['creator'];
    organName = map['organName'];
    orderId = map['orderId'];
    taskName = map['taskName'];
    operator = map['operator'];
    starTime = map['starTime'];
    useTime = map['useTime'];
    totalTime = map['totalTime'];
    type = map['type'];
    status = map['status'];
  }

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

    json['processName'] = this.processName;
    json['groupName'] = this.groupName;
    json['creator'] = this.creator;
    json['organName'] = this.organName;
    json['orderId'] = this.orderId;
    json['taskName'] = this.taskName;
    json['operator'] = this.operator;
    json['starTime'] = this.starTime;
    json['useTime'] = this.useTime;
    json['totalTime'] = this.totalTime;
    json['type'] = this.type;
    json['status'] = this.status;

    return json;
  }
}
