DioProperties class
Constructors
DioProperties ({DioDateLibrary ? dateLibrary , bool ? nullableFields , DioSerializationLibrary ? serializationLibrary , 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
DioProperties.fromMap (Map <String , dynamic > map )
Properties
allowUnicodeIdentifiers
→ bool ?
toggles whether unicode identifiers are allowed in names or not, default is false
final inherited
dateLibrary
→ DioDateLibrary ?
Choose serialization format JSON or PROTO is supported
final
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
nullableFields
→ bool ?
Is the null fields should be in the JSON payload
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
pubVersion
→ String ?
Version in generated pubspec
final inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
serializationLibrary
→ DioSerializationLibrary ?
final
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