UserAuth class

User authentication.

Annotations
  • @freezed

Constructors

UserAuth({@JsonKey(name: 'created') required String created, @JsonKey(name: 'last_access') String? lastAccess, @JsonKey(name: '_age') int? debugAge, @JsonKey(name: 'uid') required String uid, @JsonKey(name: 'kind') required String kind, @JsonKey(name: 'addr') String? addr, @JsonKey(name: 'user_agent') String? useragent, @JsonKey(name: 'country') String? country, @JsonKey(name: 'region') String? region, @JsonKey(name: 'device') PushDevice? device})
const
factory
UserAuth.fromJson(Map<String, dynamic> json)
factory

Properties

addr String?
ip address.
no setterinherited
copyWith → $UserAuthCopyWith<UserAuth>
no setterinherited
country String?
name of country.
no setterinherited
created String
.
no setterinherited
debugAge int?
.
no setterinherited
device PushDevice?
info about device (struct).
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
kind String
type of auth.
no setterinherited
lastAccess String?
.
no setterinherited
region String?
name of region.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uid String
.
no setterinherited
useragent String?
info about useragent.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited