anyof_example library

Classes

ApiResponse
Example 2: API Response that can return different types
BooleanSetting
ErrorResponse
ListResponse
NumberSetting
NumericUserId
ObjectSetting
ResponseData
Setting
Example 3: Settings value that can be different types
SettingValue
StringSetting
StringUserId
UserId
Example 1: Simple AnyOf with sealed class Represents a value that can be either a string ID or numeric ID
UserResponse

Properties

apiResponseSchema → ObjectSchema
Generated schema for ApiResponse API response with different possible payloads
final
errorResponseSchema → ObjectSchema
Generated schema for ErrorResponse
final
listResponseSchema → ObjectSchema
Generated schema for ListResponse
final
responseDataSchema → AnyOfSchema
final
settingSchema → ObjectSchema
Generated schema for Setting Configuration setting with flexible value type
final
settingValueSchema → AnyOfSchema
final
userResponseSchema → ObjectSchema
Generated schema for UserResponse
final

Functions

main() → void