copyWith method

Data copyWith({
  1. num? masterUserId,
  2. String? masterUserIdString,
  3. String? name,
  4. String? nameSmall,
  5. num? inquiryTotalCount,
  6. String? email,
  7. String? assignLead,
  8. String? onLeave,
  9. String? contactNo,
  10. String? birthdate,
  11. String? groupId,
  12. String? department,
  13. String? isActive,
  14. String? type,
  15. num? leaveOnOff,
  16. String? roleType,
  17. String? refUserId,
  18. String? profileImage,
  19. num? createdAtToday,
  20. String? createdAt,
  21. String? createdTime,
  22. String? updatedAt,
  23. List? teamIds,
  24. AdminGroupData? adminGroupData,
})

Implementation

Data copyWith({  num? masterUserId,
  String? masterUserIdString,
  String? name,
  String? nameSmall,
  num? inquiryTotalCount,
  String? email,
  String? assignLead,
  String? onLeave,
  String? contactNo,
  String? birthdate,
  String? groupId,
  String? department,
  String? isActive,
  String? type,
  num? leaveOnOff,
  String? roleType,
  String? refUserId,
  String? logo,
  String? profileImage,
  num? createdAtToday,
  String? createdAt,
  String? createdTime,
  String? updatedAt,
  List<dynamic>? teamIds,
  AdminGroupData? adminGroupData,
}) => Data(  masterUserId: masterUserId ?? _masterUserId,
  masterUserIdString: masterUserIdString ?? _masterUserIdString,
  name: name ?? _name,
  nameSmall: nameSmall ?? _nameSmall,
  inquiryTotalCount: inquiryTotalCount ?? _inquiryTotalCount,
  email: email ?? _email,
  assignLead: assignLead ?? _assignLead,
  onLeave: onLeave ?? _onLeave,
  contactNo: contactNo ?? _contactNo,
  birthdate: birthdate ?? _birthdate,
  groupId: groupId ?? _groupId,
  department: department ?? _department,
  isActive: isActive ?? _isActive,
  type: type ?? _type,
  leaveOnOff: leaveOnOff ?? _leaveOnOff,
  roleType: roleType ?? _roleType,
  refUserId: refUserId ?? _refUserId,
  logo: logo ?? _logo,
  profileImage: profileImage ?? _profileImage,
  createdAtToday: createdAtToday ?? _createdAtToday,
  createdAt: createdAt ?? _createdAt,
  createdTime: createdTime ?? _createdTime,
  updatedAt: updatedAt ?? _updatedAt,
  teamIds: teamIds ?? _teamIds,
  adminGroupData: adminGroupData ?? _adminGroupData,
);