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

class SignUpRequestModel {
final int? assetGroupId;
final int? companyId;
final String? employeeId;
final String? fullName;
final String? emailAddress;
final String? mobileNumber;
final String? extensionNumber;
final int? siteId;
final String? erpSite;
final int? departmentId;
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.siteId,
this.erpSite,
this.departmentId,
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 ?? '',
'siteId': siteId ?? 0,
'erpSite': erpSite ?? '',
'departmentId': departmentId ?? 0,
'erpDepartment': erpDepartment ?? '',
'role': role ?? '',
'isFromERP': isFromERP,
};
}
}