You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/modules/signup/models/signup_request_model.dart

50 lines
1.2 KiB
Dart

3 months ago
class SignUpRequestModel {
final int? assetGroupId;
final int? companyId;
3 months ago
final String? employeeId;
final String? fullName;
final String? emailAddress;
3 months ago
final String? mobileNumber;
final String? extensionNumber;
1 month ago
final List<int>? siteIds;
final String? erpSite;
1 month ago
final List<int>? departmentIds;
final String? erpDepartment;
3 months ago
final String? role;
final bool isFromERP;
3 months ago
SignUpRequestModel({
this.assetGroupId,
this.companyId,
3 months ago
this.employeeId,
this.fullName,
this.emailAddress,
3 months ago
this.mobileNumber,
this.extensionNumber,
1 month ago
this.siteIds,
this.erpSite,
1 month ago
this.departmentIds,
this.erpDepartment,
3 months ago
this.role,
required this.isFromERP,
3 months ago
});
Map<String, dynamic> toJson() {
return {
'assetGroupId': assetGroupId ?? 0,
'companyId': companyId ?? 0,
'employeeId': employeeId ?? '',
'fullName': fullName ?? '',
'emailAddress': emailAddress ?? '',
'mobileNumber': mobileNumber ?? '',
'extensionNumber': extensionNumber ?? '',
1 month ago
'siteIds': siteIds,
'erpSite': erpSite ?? '',
1 month ago
'departmentIds': departmentIds,
'erpDepartment': erpDepartment ?? '',
'role': role ?? '',
'isFromERP': isFromERP,
3 months ago
};
}
}