DioProperties class

Inheritance

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
finalinherited
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).
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
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.
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
pubVersion String?
Version in generated pubspec
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serializationLibrary DioSerializationLibrary?
final
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