build method
Creates the CryptData instance.
This also validates the parameters, and throws ArgumentError if something is wrong.
Implementation
CryptData build() {
var data = CryptData(
id,
version: _version,
salt: _salt,
hash: _hash,
params: _params.isEmpty ? null : _params,
);
data.validate();
return data;
}