class ContactPersonWorkOrder {
  ContactPersonWorkOrder({
    this.id,
    this.employeeCode,
    this.name,
    this.telephone,
    this.job,
    this.email,
    this.land,
    this.contactUserId,
  });

  ContactPersonWorkOrder.fromJson(dynamic json) {
    id = json['id'];
    employeeCode = json['employeeCode'];
    name = json['name'];
    telephone = json['telephone'];
    job = json['job'];
    email = json['email'];
    land = json['land'];
    contactUserId = json['contactUserId'];
  }

  num? id;
  String? employeeCode;
  String? name;
  String? telephone;
  String? job;
  String? email;
  String? land;
  String? contactUserId;

  ContactPersonWorkOrder copyWith({
    num? id,
    String? employeeCode,
    String? name,
    String? telephone,
    String? job,
    String? email,
    String? land,
    String? contactUserId,
  }) =>
      ContactPersonWorkOrder(
        id: id ?? this.id,
        employeeCode: employeeCode ?? this.employeeCode,
        name: name ?? this.name,
        telephone: telephone ?? this.telephone,
        job: job ?? this.job,
        email: email ?? this.email,
        land: land ?? this.land,
        contactUserId: contactUserId ?? this.contactUserId,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['employeeCode'] = employeeCode;
    map['name'] = name;
    map['telephone'] = telephone;
    map['job'] = job;
    map['email'] = email;
    map['land'] = land;
    map['contactUserId'] = contactUserId;
    return map;
  }
}
