// GENERATED CODE - DO NOT MODIFY BY HAND part of 'cognito_user.dart'; // ************************************************************************** // BuiltValueGenerator // ************************************************************************** class _$CognitoUser extends CognitoUser { @override final String? identityId; @override final AWSCredentials? awsCredentials; @override final CognitoUserPoolTokens? userPoolTokens; @override final CognitoDeviceSecrets? deviceSecrets; @override final String userId; @override final String username; @override final CognitoSignInDetails signInDetails; @override final BuiltMap attributes; factory _$CognitoUser([void Function(CognitoUserBuilder)? updates]) => (new CognitoUserBuilder()..update(updates))._build(); _$CognitoUser._( {this.identityId, this.awsCredentials, this.userPoolTokens, this.deviceSecrets, required this.userId, required this.username, required this.signInDetails, required this.attributes}) : super._() { BuiltValueNullFieldError.checkNotNull(userId, r'CognitoUser', 'userId'); BuiltValueNullFieldError.checkNotNull(username, r'CognitoUser', 'username'); BuiltValueNullFieldError.checkNotNull( signInDetails, r'CognitoUser', 'signInDetails'); BuiltValueNullFieldError.checkNotNull( attributes, r'CognitoUser', 'attributes'); } @override CognitoUser rebuild(void Function(CognitoUserBuilder) updates) => (toBuilder()..update(updates)).build(); @override CognitoUserBuilder toBuilder() => new CognitoUserBuilder()..replace(this); @override bool operator ==(Object other) { if (identical(other, this)) return true; return other is CognitoUser && identityId == other.identityId && awsCredentials == other.awsCredentials && userPoolTokens == other.userPoolTokens && deviceSecrets == other.deviceSecrets && userId == other.userId && username == other.username && signInDetails == other.signInDetails && attributes == other.attributes; } @override int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, identityId.hashCode); _$hash = $jc(_$hash, awsCredentials.hashCode); _$hash = $jc(_$hash, userPoolTokens.hashCode); _$hash = $jc(_$hash, deviceSecrets.hashCode); _$hash = $jc(_$hash, userId.hashCode); _$hash = $jc(_$hash, username.hashCode); _$hash = $jc(_$hash, signInDetails.hashCode); _$hash = $jc(_$hash, attributes.hashCode); _$hash = $jf(_$hash); return _$hash; } @override String toString() { return (newBuiltValueToStringHelper(r'CognitoUser') ..add('identityId', identityId) ..add('awsCredentials', awsCredentials) ..add('userPoolTokens', userPoolTokens) ..add('deviceSecrets', deviceSecrets) ..add('userId', userId) ..add('username', username) ..add('signInDetails', signInDetails) ..add('attributes', attributes)) .toString(); } } class CognitoUserBuilder implements Builder { _$CognitoUser? _$v; String? _identityId; String? get identityId => _$this._identityId; set identityId(String? identityId) => _$this._identityId = identityId; AWSCredentials? _awsCredentials; AWSCredentials? get awsCredentials => _$this._awsCredentials; set awsCredentials(AWSCredentials? awsCredentials) => _$this._awsCredentials = awsCredentials; CognitoUserPoolTokensBuilder? _userPoolTokens; CognitoUserPoolTokensBuilder get userPoolTokens => _$this._userPoolTokens ??= new CognitoUserPoolTokensBuilder(); set userPoolTokens(CognitoUserPoolTokensBuilder? userPoolTokens) => _$this._userPoolTokens = userPoolTokens; CognitoDeviceSecretsBuilder? _deviceSecrets; CognitoDeviceSecretsBuilder? get deviceSecrets => _$this._deviceSecrets; set deviceSecrets(CognitoDeviceSecretsBuilder? deviceSecrets) => _$this._deviceSecrets = deviceSecrets; String? _userId; String? get userId => _$this._userId; set userId(String? userId) => _$this._userId = userId; String? _username; String? get username => _$this._username; set username(String? username) => _$this._username = username; CognitoSignInDetails? _signInDetails; CognitoSignInDetails? get signInDetails => _$this._signInDetails; set signInDetails(CognitoSignInDetails? signInDetails) => _$this._signInDetails = signInDetails; MapBuilder? _attributes; MapBuilder get attributes => _$this._attributes ??= new MapBuilder(); set attributes(MapBuilder? attributes) => _$this._attributes = attributes; CognitoUserBuilder(); CognitoUserBuilder get _$this { final $v = _$v; if ($v != null) { _identityId = $v.identityId; _awsCredentials = $v.awsCredentials; _userPoolTokens = $v.userPoolTokens?.toBuilder(); _deviceSecrets = $v.deviceSecrets?.toBuilder(); _userId = $v.userId; _username = $v.username; _signInDetails = $v.signInDetails; _attributes = $v.attributes.toBuilder(); _$v = null; } return this; } @override void replace(CognitoUser other) { ArgumentError.checkNotNull(other, 'other'); _$v = other as _$CognitoUser; } @override void update(void Function(CognitoUserBuilder)? updates) { if (updates != null) updates(this); } @override CognitoUser build() => _build(); _$CognitoUser _build() { CognitoUser._finalize(this); _$CognitoUser _$result; try { _$result = _$v ?? new _$CognitoUser._( identityId: identityId, awsCredentials: awsCredentials, userPoolTokens: _userPoolTokens?.build(), deviceSecrets: _deviceSecrets?.build(), userId: BuiltValueNullFieldError.checkNotNull( userId, r'CognitoUser', 'userId'), username: BuiltValueNullFieldError.checkNotNull( username, r'CognitoUser', 'username'), signInDetails: BuiltValueNullFieldError.checkNotNull( signInDetails, r'CognitoUser', 'signInDetails'), attributes: attributes.build()); } catch (_) { late String _$failedField; try { _$failedField = 'userPoolTokens'; _userPoolTokens?.build(); _$failedField = 'deviceSecrets'; _deviceSecrets?.build(); _$failedField = 'attributes'; attributes.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'CognitoUser', _$failedField, e.toString()); } rethrow; } replace(_$result); return _$result; } } // ignore_for_file: deprecated_member_use_from_same_package,type=lint