CopyWith method
JwtPayload
CopyWith(
{ - String? subject,
- String? username,
- String? name,
- String? issuer,
- String? audience,
- DateTime? notBefore,
- DateTime? expires,
- String? userId,
- String? tenantId,
- List<String>? roles,
})
Implementation
JwtPayload 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,
}) {
var ret = JwtPayload(
subject: subject ?? this.subject,
username: username ?? this.username,
name: name ?? this.name,
issuer: issuer ?? this.issuer,
audience: audience ?? this.audience,
notBefore: notBefore ?? this.notBefore,
expires: expires ?? this.expires,
extra: extra ?? this.extra,
);
return ret;
}