Jwt constructor

  1. @JsonSerializable(includeIfNull: false, fieldRename: FieldRename.snake)
const Jwt({
  1. required String aud,
  2. required String sub,
  3. String? jti,
  4. Map<String, dynamic>? cnf,
  5. String? clientId,
  6. required String scope,
  7. String? iss,
  8. @dateTimeConverter required DateTime exp,
  9. @dateTimeConverter required DateTime iat,
})

Implementation

@JsonSerializable(includeIfNull: false, fieldRename: FieldRename.snake)
const factory Jwt({
  required String aud,
  required String sub,
  String? jti,
  Map<String, dynamic>? cnf,
  String? clientId,
  required String scope,
  String? iss,
  @dateTimeConverter required DateTime exp,
  @dateTimeConverter required DateTime iat,
}) = _Jwt;