OAuthClientMetadata constructor

  1. @JsonSerializable(includeIfNull: false, fieldRename: FieldRename.snake)
const OAuthClientMetadata({
  1. required String clientId,
  2. required String applicationType,
  3. required String clientName,
  4. required String clientUri,
  5. @Default(true) bool dpopBoundAccessTokens,
  6. @Default([]) List<String> grantTypes,
  7. @JsonKey(name: 'redirect_uris_OLD') @Default([]) List<String> redirectUrisOLD,
  8. @Default([]) List<String> redirectUris,
  9. @Default([]) List<String> responseTypes,
  10. required String scope,
  11. required String tokenEndpointAuthMethod,
})

Implementation

@JsonSerializable(includeIfNull: false, fieldRename: FieldRename.snake)
const factory OAuthClientMetadata({
  required String clientId,
  required String applicationType,
  required String clientName,
  required String clientUri,
  @Default(true) bool dpopBoundAccessTokens,
  @Default([]) List<String> grantTypes,
  @JsonKey(name: 'redirect_uris_OLD')
  @Default([])
  List<String> redirectUrisOLD,
  @Default([]) List<String> redirectUris,
  @Default([]) List<String> responseTypes,
  required String scope,
  required String tokenEndpointAuthMethod,
}) = _OAuthClientMetadata;