CopyWith method

JwtPayload CopyWith({
  1. String? subject,
  2. String? username,
  3. String? name,
  4. String? issuer,
  5. String? audience,
  6. DateTime? notBefore,
  7. DateTime? expires,
  8. String? userId,
  9. String? tenantId,
  10. List<String>? roles,
  11. Map<String, dynamic>? extra,
})

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;
}