/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2021-05-06 09:04:11
 * @LastEditTime : 2023-08-04 14:40:39
 * @FilePath     : /wisdom-huiguanjia-app/task_fourth_package/lib/src/models/task_emp_infos.dart
 * @Description  : Do not edit
 */

import 'package:wisdom_cli/wisdom_ui.dart';

class TaskEmpInfos implements WPickerEntity {
  String? id;
  String? organId;
  String? organName;
  String? name;
  bool? isSelect;

  TaskEmpInfos({
    this.id,
    this.organId,
    this.organName,
    this.name,
    this.isSelect,
  });

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

    id = map['id'];
    organId = map['organId'];
    organName = map['organName'];
    name = map['name'];
    isSelect = map['isSelect'];
  }

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

    json['id'] = this.id;
    json['organId'] = this.organId;
    json['organName'] = this.organName;
    json['name'] = this.name;
    json['isSelect'] = this.isSelect;

    return json;
  }

  @override
  bool get selectDisabled => false;

  @override
  String get selectName => this.name ?? '';

  @override
  String get selectUnique => this.id ?? '';
}
