class EmployeeERPModel {
  final String? employeeNumber;
  final String? employeeName;
  final String? employeeEmailAddress;
  final String? employeeMobileNumber;
  final String? extensionNumber;
  final String? branchCode;
  final String? branchName;
  final int? positionId;
  final String? positionName;

  EmployeeERPModel({
    this.employeeNumber,
    this.employeeName,
    this.employeeEmailAddress,
    this.employeeMobileNumber,
    this.extensionNumber,
    this.branchCode,
    this.branchName,
    this.positionId,
    this.positionName,
  });

  factory EmployeeERPModel.fromJson(Map<String, dynamic> json) {
    return EmployeeERPModel(
      employeeNumber: json['employeeNumber']?.toString(),
      employeeName: json['employeeName'],
      employeeEmailAddress: json['employeeEmailAddress'],
      employeeMobileNumber: json['employeeMobileNumber'],
      extensionNumber: json['extensionNumber'],
      branchCode: json['branchCode'],
      branchName: json['branchName'],
      positionId: json['positionId'],
      positionName: json['positionName'],
    );
  }

  Map<String, dynamic> toJson() {
    return {
      'employeeNumber': employeeNumber,
      'employeeName': employeeName,
      'employeeEmailAddress': employeeEmailAddress,
      'employeeMobileNumber': employeeMobileNumber,
      'extensionNumber': extensionNumber,
      'branchCode': branchCode,
      'branchName': branchName,
      'positionId': positionId,
      'positionName': positionName,
    };
  }
}
