JwtPayload class
Represents the payload content of a JWT token.
Constructors
-
JwtPayload({required String subject, required String username, required String name, required String issuer, required String audience, required DateTime notBefore, required DateTime expires, Map<
String, dynamic> extra = const <String, dynamic>{}}) -
const
-
JwtPayload.fromMap(Map<
String, dynamic> map) -
factory
Properties
- audience → String
-
final
-
claimsMap
→ Map<
String, dynamic> -
no setter
- expires → DateTime
-
final
-
extra
→ Map<
String, dynamic> -
any other extra fields that are
not represented in the available properties
are stored in this property.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- issuer → String
-
final
- name → String
-
final
- notBefore → DateTime
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subject → String
-
final
- username → String
-
final
Methods
-
CopyWith(
{String? subject, String? username, String? name, String? issuer, String? audience, DateTime? notBefore, DateTime? expires, String? userId, String? tenantId, List< String> ? roles, Map<String, dynamic> ? extra}) → JwtPayload -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited