/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2021-03-23 16:48:45
 * @LastEditTime : 2021-03-29 10:27:40
 * @FilePath     : /wisdom-huiguanjia-app/oa_package/lib/src/models/task_list_model.dart
 * @Description  : 任务列表（待处理、办理中、已办结）
 */

class TaskListModel {
  String? processName;
  String? orderId;
  String? groupName;
  String? creator;
  String? organName;
  String? starTime;
  dynamic actors;
  num? useTime;
  num? totalTime;
  String? type;
  String? status;

  TaskListModel({
    this.processName,
    this.orderId,
    this.groupName,
    this.creator,
    this.organName,
    this.starTime,
    this.actors,
    this.useTime,
    this.totalTime,
    this.type,
    this.status,
  });

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

    processName = map['processName'];
    orderId = map['orderId'];
    groupName = map['groupName'];
    creator = map['creator'];
    organName = map['organName'];
    starTime = map['starTime'];
    actors = map['actors'];
    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['orderId'] = this.orderId;
    json['groupName'] = this.groupName;
    json['creator'] = this.creator;
    json['organName'] = this.organName;
    json['starTime'] = this.starTime;
    json['actors'] = this.actors;
    json['useTime'] = this.useTime;
    json['totalTime'] = this.totalTime;
    json['type'] = this.type;
    json['status'] = this.status;

    return json;
  }
}
