init(id:userName:email:fullName:collections:items:)
Creates an account instance from its required and optional properties.
Declaration
init(id: Data, userName: String, email: String, fullName: String? = nil, collections: [ASImportableCollection], items: [ASImportableItem])Parameters
- id:
A unique identifier for the account.
- userName:
The username associated with the account.
- email:
The email address associated with the account.
- fullName:
The full name of the account owner, if provided.
- collections:
An array of Asimportablecollection instances to store in the account.
- items:
An array of Asimportableitem instances to store in the account.