build method
Builds.
The implementation of this method will be generated for you by the built_value generator.
Implementation
@override
_$Session build() {
_$Session _$result;
try {
_$result = _$v ??
new _$Session._(
active: active,
authenticatedAt: authenticatedAt,
authenticationMethods: _authenticationMethods?.build(),
authenticatorAssuranceLevel: authenticatorAssuranceLevel,
expiresAt: expiresAt,
id: BuiltValueNullFieldError.checkNotNull(id, 'Session', 'id'),
identity: identity.build(),
issuedAt: issuedAt);
} catch (_) {
late String _$failedField;
try {
_$failedField = 'authenticationMethods';
_authenticationMethods?.build();
_$failedField = 'identity';
identity.build();
} catch (e) {
throw new BuiltValueNestedFieldError(
'Session', _$failedField, e.toString());
}
rethrow;
}
replace(_$result);
return _$result;
}