copyWith method
JwtPayload
copyWith(
{ - String? subject,
- String? email,
- String? name,
- String? issuer,
- String? audience,
- DateTime? notBefore,
- DateTime? expires,
- String? userId,
- String? tenantId,
- String? tid,
- List<String>? roles,
- bool? isVerified,
- bool? emailVerified,
})
Implementation
JwtPayload copyWith({
String? subject,
String? email,
String? name,
String? issuer,
String? audience,
DateTime? notBefore,
DateTime? expires,
String? userId,
String? tenantId,
String? tid,
List<String>? roles,
bool? isVerified,
bool? emailVerified,
Map<String, dynamic>? extra,
}) {
var ret = JwtPayload(
subject: subject ?? this.subject,
email: email ?? this.email,
name: name ?? this.name,
issuer: issuer ?? this.issuer,
audience: audience ?? this.audience,
notBefore: notBefore ?? this.notBefore,
expires: expires ?? this.expires,
extra: extra ?? this.extra,
isVerified: isVerified ?? this.isVerified,
emailVerified: emailVerified ?? this.emailVerified,
tenantId: tenantId ?? this.tenantId,
tid: tid ?? this.tid,
);
return ret;
}