AuthCredentialResponse class abstract
- Available extensions
- Annotations
-
- @Freezed(makeCollectionsUnmodifiable: false)
Constructors
- AuthCredentialResponse.new({@JsonKey(name: 'customToken') String? customToken, @JsonKey(name: 'id_token') String? idToken, @JsonKey(name: 'expires_in') String? expiresIn, @JsonKey(name: 'refresh_token') String? refreshToken, @JsonKey(name: 'uid') String? uid, @JsonKey(name: 'is_admin') bool? isAdmin, @JsonKey(name: 'is_anonymous') bool? isAnonymous, @JsonKey(name: 'can_experiment') bool? canExperiment, @JsonKey(name: 'change_pin') bool? isChangePin})
-
factory
-
AuthCredentialResponse.fromJson(Map<
String, dynamic> json) -
factory
Properties
- canExperiment → bool?
-
no setterinherited
-
copyWith
→ $AuthCredentialResponseCopyWith<
AuthCredentialResponse> -
Create a copy of AuthCredentialResponse
with the given fields replaced by the non-null parameter values.
no setterinherited
- customToken → String?
-
no setterinherited
- expiresIn → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- idToken → String?
-
no setterinherited
- isAdmin → bool?
-
no setterinherited
- isAnonymous → bool?
-
no setterinherited
- isChangePin → bool?
-
no setterinherited
- refreshToken → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uid → String?
-
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_AuthCredentialResponse value)) → TResult -
Available on AuthCredentialResponse, provided by the AuthCredentialResponsePatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_AuthCredentialResponse value)?) → TResult? -
Available on AuthCredentialResponse, provided by the AuthCredentialResponsePatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_AuthCredentialResponse value)?, {required TResult orElse()}) → TResult -
Available on AuthCredentialResponse, provided by the AuthCredentialResponsePatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String? customToken, String? idToken, String? expiresIn, String? refreshToken, String? uid, bool? isAdmin, bool? isAnonymous, bool? canExperiment, bool? isChangePin)?, {required TResult orElse()}) → TResult -
Available on AuthCredentialResponse, provided by the AuthCredentialResponsePatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this AuthCredentialResponse to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? customToken, String? idToken, String? expiresIn, String? refreshToken, String? uid, bool? isAdmin, bool? isAnonymous, bool? canExperiment, bool? isChangePin)) → TResult -
Available on AuthCredentialResponse, provided by the AuthCredentialResponsePatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? customToken, String? idToken, String? expiresIn, String? refreshToken, String? uid, bool? isAdmin, bool? isAnonymous, bool? canExperiment, bool? isChangePin)?) → TResult? -
Available on AuthCredentialResponse, provided by the AuthCredentialResponsePatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited