class SignUpRequestModel {
  final int? assetGroupId;
  final int? companyId;
  final String? employeeId;
  final String? fullName;
  final String? emailAddress;
  final String? mobileNumber;
  final String? extensionNumber;
  final List<int>? siteIds;
  final String? erpSite;
  final List<int>? departmentIds;
  final String? erpDepartment;
  final String? role;
  final bool isFromERP;

  SignUpRequestModel({
    this.assetGroupId,
    this.companyId,
    this.employeeId,
    this.fullName,
    this.emailAddress,
    this.mobileNumber,
    this.extensionNumber,
    this.siteIds,
    this.erpSite,
    this.departmentIds,
    this.erpDepartment,
    this.role,
    required this.isFromERP,
  });

  Map<String, dynamic> toJson() {
    return {
      'assetGroupId': assetGroupId ?? 0,
      'companyId': companyId ?? 0,
      'employeeId': employeeId ?? '',
      'fullName': fullName ?? '',
      'emailAddress': emailAddress ?? '',
      'mobileNumber': mobileNumber ?? '',
      'extensionNumber': extensionNumber ?? '',
      'siteIds': siteIds,
      'erpSite': erpSite ?? '',
      'departmentIds': departmentIds,
      'erpDepartment': erpDepartment ?? '',
      'role': role ?? '',
      'isFromERP': isFromERP,
    };
  }
}
