toDocument
Extension function to convert a UserCredentials domain model to a UserCredentialsDocument.
Receiver
The UserCredentials domain model to be converted.
Return
The corresponding UserCredentialsDocument for persistence.
Extension function to convert a UserCredentials domain model to a UserCredentialsDocument.
The UserCredentials domain model to be converted.
The corresponding UserCredentialsDocument for persistence.