Skip to content

Commit

Permalink
chore: remove UserAttributeKey, serializeAsMap() (#4796)
Browse files Browse the repository at this point in the history
* chore: remove `UserAttributeKey`, `serializeAsMap()`

* chore: remove `targetName`
  • Loading branch information
Jordan-Nelson authored Apr 29, 2024
1 parent 521e3a6 commit d089371
Show file tree
Hide file tree
Showing 20 changed files with 0 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ class AuthUserAttribute
@override
List<Object> get props => [userAttributeKey, value];

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
String get runtimeTypeName => 'AuthUserAttribute';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import 'package:amplify_core/amplify_core.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:meta/meta.dart';

/// @nodoc
@Deprecated('Use AuthUserAttributeKey instead')
typedef UserAttributeKey = AuthUserAttributeKey;

/// {@category Auth}
/// {@template amplify_core.auth_user_attribute_key}
/// A user attribute identifier.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class ConfirmUserAttributeOptions
@override
String get runtimeTypeName => 'ConfirmUserAttributeOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class FetchUserAttributesOptions
@override
String get runtimeTypeName => 'FetchUserAttributesOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ class SendUserAttributeVerificationCodeOptions
@override
String get runtimeTypeName => 'SendUserAttributeVerificationCodeOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class UpdateUserAttributeOptions
@override
String get runtimeTypeName => 'UpdateUserAttributeOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class UpdateUserAttributesOptions
@override
String get runtimeTypeName => 'UpdateUserAttributesOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class ConfirmResetPasswordOptions
@override
String get runtimeTypeName => 'ConfirmResetPasswordOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class ResetPasswordOptions
@override
String get runtimeTypeName => 'ResetPasswordOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class UpdatePasswordOptions
@override
String get runtimeTypeName => 'UpdatePasswordOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ class FetchAuthSessionOptions
@override
String get runtimeTypeName => 'FetchAuthSessionOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'forceRefresh': forceRefresh,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ class GetCurrentUserOptions
@override
String get runtimeTypeName => 'GetCurrentUserOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class ConfirmSignInOptions
@override
String get runtimeTypeName => 'ConfirmSignInOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class SignInOptions
@override
String get runtimeTypeName => 'SignInOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class SignInWithWebUIOptions
@override
String get runtimeTypeName => 'SignInWithWebUIOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ class SignOutOptions
@override
String get runtimeTypeName => 'SignOutOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'globalSignOut': globalSignOut,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class ConfirmSignUpOptions
@override
String get runtimeTypeName => 'ConfirmSignUpOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class ResendSignUpCodeOptions
@override
String get runtimeTypeName => 'ResendSignUpCodeOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'pluginOptions': pluginOptions?.toJson(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ class SignUpOptions
@override
String get runtimeTypeName => 'SignUpOptions';

/// @nodoc
@Deprecated('Use toJson instead')
Map<String, Object?> serializeAsMap() => toJson();

@override
Map<String, Object?> toJson() => {
'userAttributes': userAttributes,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,6 @@ class ModelFieldDefinition {
bool isRequired = true,
required String ofModelName,
QueryField<Object?>? associatedKey,
@Deprecated(
'Please use the latest version of Amplify CLI to regenerate models',
)
String? targetName,
List<String>? targetNames,
}) {
// Extra code needed due to lack of nullability support
Expand Down

0 comments on commit d089371

Please sign in to comment.