DioAltProperties class

Inheritance

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
finalinherited
ensureUniqueParams bool?
Whether to ensure parameter names are unique in an operation (rename parameters that are not).
finalinherited
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.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
legacyDiscriminatorBehavior bool
Set to true for generators with better support for discriminators. (Python, Java, Go, PowerShell, C#have this enabled by default).
finalinherited
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.
finalinherited
pubAuthor String?
Author name in generated pubspec
finalinherited
pubAuthorEmail String?
Email address of the author in generated pubspec
finalinherited
pubDescription String?
Description in generated pubspec
finalinherited
pubHomepage String?
Homepage in generated pubspec
finalinherited
pubName String?
Name in generated pubspec
finalinherited
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
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortModelPropertiesByRequiredFlag bool?
Sort model properties to place required parameters before optional parameters.
finalinherited
sortParamsByRequiredFlag bool?
Sort method arguments to place required parameters before optional parameters.
finalinherited
sourceFolder String?
Source folder for generated code
finalinherited
useEnumExtension bool?
Allow the 'x-enum-values' extension for enums
finalinherited
wrapper Wrapper
Flutter wrapper to use (none|flutterw|fvm)
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited