copy method

User copy()

Implementation

User copy() {
  return User(
    username: username,
    userID: userID,
    firstName: firstName,
    middleName: middleName,
    familyName: familyName,
    preferredName: preferredName,
    emailAddress: emailAddress,
    emailAddressVerified: emailAddressVerified,
    mobilePhone: mobilePhone,
    mobilePhoneVerified: mobilePhoneVerified,
    profilePictureUrl: profilePictureUrl,
    rememberFor24h: rememberFor24h,
    enableBiometric: enableBiometric,
    enableMFA: enableMFA,
    enableTOTP: enableTOTP,
    userProfile: Map<String, dynamic>.from(userProfile),
  );
}