DioAltProperties class
Constructors
DioAltProperties ({bool ? nullSafe , bool ? nullSafeArrayDefault , String ? pubspecDependencies , String ? pubspecDevDependencies , bool ? listAnyOf , bool allowUnicodeIdentifiers = false , bool ensureUniqueParams = true , bool prependFormOrBodyParameters = false , String ? pubAuthor , String ? pubAuthorEmail , String ? pubDescription , String ? pubHomepage , String ? pubName , String ? pubVersion , bool sortModelPropertiesByRequiredFlag = true , bool sortParamsByRequiredFlag = true , bool useEnumExtension = true , bool enumUnknownDefaultCase = false , String ? sourceFolder , Wrapper wrapper = Wrapper.none })
const
DioAltProperties.fromMap (Map <String , dynamic > map )
Properties
allowUnicodeIdentifiers
→ bool ?
toggles whether unicode identifiers are allowed in names or not, default is false
final inherited
ensureUniqueParams
→ bool ?
Whether to ensure parameter names are unique in an operation (rename parameters that are not).
final inherited
enumUnknownDefaultCase
→ bool
If the server adds new enum cases, that are unknown by an old spec/client,
the client will fail to parse the network response.With this option enabled, each enum will have a new case, 'unknown_default_open_api',
so that when the server sends an enum case that is not known by the client/spec,
they can safely fallback to this case.
final inherited
hashCode
→ int
The hash code for this object.
no setter inherited
legacyDiscriminatorBehavior
→ bool
Set to true for generators with better support for discriminators.
(Python, Java, Go, PowerShell, C#have this enabled by default).
final inherited
listAnyOf
→ bool ?
This will turn off AnyOf support. This would be a bit weird, but you can do it if you want.
final
nullSafe
→ bool ?
Changes the minimum version of Dart to 2.12 and generate null safe code
final
nullSafeArrayDefault
→ bool ?
nullSafe-array-default
Makes even arrays that are not listed as being required in your OpenAPI "required"
but making them always generate a default value of []
final
prependFormOrBodyParameters
→ bool ?
Add form or body parameters to the beginning of the parameter list.
final inherited
pubAuthor
→ String ?
Author name in generated pubspec
final inherited
pubAuthorEmail
→ String ?
Email address of the author in generated pubspec
final inherited
pubDescription
→ String ?
Description in generated pubspec
final inherited
pubHomepage
→ String ?
Homepage in generated pubspec
final inherited
pubName
→ String ?
Name in generated pubspec
final inherited
pubspecDependencies
→ String ?
Anything in this will be split on a command added to the dependencies section of your generated code.
pubspec-dependencies
final
pubspecDevDependencies
→ String ?
pubspec-dev-dependencies
Anything here will be added to the dev dependencies of your generated code.
final
pubVersion
→ String ?
Version in generated pubspec
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
sortModelPropertiesByRequiredFlag
→ bool ?
Sort model properties to place required parameters before optional parameters.
final inherited
sortParamsByRequiredFlag
→ bool ?
Sort method arguments to place required parameters before optional parameters.
final inherited
sourceFolder
→ String ?
Source folder for generated code
final inherited
useEnumExtension
→ bool ?
Allow the 'x-enum-values' extension for enums
final inherited
wrapper
→ Wrapper
Flutter wrapper to use (none|flutterw|fvm)
final inherited
openapi_generator_annotations 5.0.2