mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-05-12 12:40:53 +00:00
fix handling for lower enum cases and fixed tests
This commit is contained in:
parent
bde341ad62
commit
5c9fce26db
@ -58,7 +58,7 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
|
|||||||
@Setter protected String pubRepository = null;
|
@Setter protected String pubRepository = null;
|
||||||
@Setter protected String pubPublishTo = null;
|
@Setter protected String pubPublishTo = null;
|
||||||
@Setter protected boolean useEnumExtension = false;
|
@Setter protected boolean useEnumExtension = false;
|
||||||
@Setter protected boolean useLowerCamelCase = true;
|
@Setter protected boolean useLowerCamelCase = false;
|
||||||
@Setter protected String sourceFolder = "src";
|
@Setter protected String sourceFolder = "src";
|
||||||
protected String libPath = "lib" + File.separator;
|
protected String libPath = "lib" + File.separator;
|
||||||
protected String apiDocPath = "doc/";
|
protected String apiDocPath = "doc/";
|
||||||
@ -306,9 +306,9 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (additionalProperties.containsKey(USE_LOWER_CAMEL_CASE)) {
|
if (additionalProperties.containsKey(USE_LOWER_CAMEL_CASE)) {
|
||||||
this.setUseEnumExtension(convertPropertyToBooleanAndWriteBack(USE_LOWER_CAMEL_CASE));
|
this.setUseLowerCamelCase(convertPropertyToBooleanAndWriteBack(USE_LOWER_CAMEL_CASE));
|
||||||
} else {
|
} else {
|
||||||
additionalProperties.put(USE_ENUM_EXTENSION, useLowerCamelCase);
|
additionalProperties.put(USE_LOWER_CAMEL_CASE, useLowerCamelCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (additionalProperties.containsKey(CodegenConstants.SOURCE_FOLDER)) {
|
if (additionalProperties.containsKey(CodegenConstants.SOURCE_FOLDER)) {
|
||||||
@ -395,8 +395,8 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
|
|||||||
}
|
}
|
||||||
name = name.replaceAll("^_", "");
|
name = name.replaceAll("^_", "");
|
||||||
|
|
||||||
// if it's all upper case, do nothing
|
// if it's all upper case and more than two letters
|
||||||
if (!useLowerCamelCase && name.matches("^[A-Z_]*$")) {
|
if (name.matches("^[A-Z_]*$")) {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -408,14 +408,9 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
|
|||||||
// remove the rest
|
// remove the rest
|
||||||
name = sanitizeName(name);
|
name = sanitizeName(name);
|
||||||
|
|
||||||
if (useLowerCamelCase) {
|
// camelize (lower first character) the variable name
|
||||||
//to camelize it correctly it needs to be lower cased
|
// pet_id => petI
|
||||||
name = camelize(name.toLowerCase(), LOWERCASE_FIRST_LETTER);
|
name = camelize(name, LOWERCASE_FIRST_LETTER);
|
||||||
} else {
|
|
||||||
// camelize (lower first character) the variable name
|
|
||||||
// pet_id => petId
|
|
||||||
name = camelize(name, LOWERCASE_FIRST_LETTER);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (name.matches("^\\d.*")) {
|
if (name.matches("^\\d.*")) {
|
||||||
name = "n" + name;
|
name = "n" + name;
|
||||||
@ -746,9 +741,14 @@ public abstract class AbstractDartCodegen extends DefaultCodegen {
|
|||||||
return enumNameMapping.get(value);
|
return enumNameMapping.get(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value.length() == 0) {
|
if (value.isEmpty()) {
|
||||||
return "empty";
|
return "empty";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (useLowerCamelCase && value.matches("^[A-Z_]*$")) {
|
||||||
|
value = value.toLowerCase();
|
||||||
|
}
|
||||||
|
|
||||||
if (("number".equalsIgnoreCase(datatype) ||
|
if (("number".equalsIgnoreCase(datatype) ||
|
||||||
"double".equalsIgnoreCase(datatype) ||
|
"double".equalsIgnoreCase(datatype) ||
|
||||||
"int".equalsIgnoreCase(datatype)) &&
|
"int".equalsIgnoreCase(datatype)) &&
|
||||||
|
@ -52,6 +52,7 @@ public class DartClientOptionsTest extends AbstractOptionsTest {
|
|||||||
verify(clientCodegen).setPubPublishTo(DartClientOptionsProvider.PUB_PUBLISH_TO_VALUE);
|
verify(clientCodegen).setPubPublishTo(DartClientOptionsProvider.PUB_PUBLISH_TO_VALUE);
|
||||||
verify(clientCodegen).setSourceFolder(DartClientOptionsProvider.SOURCE_FOLDER_VALUE);
|
verify(clientCodegen).setSourceFolder(DartClientOptionsProvider.SOURCE_FOLDER_VALUE);
|
||||||
verify(clientCodegen).setUseEnumExtension(Boolean.parseBoolean(DartClientOptionsProvider.USE_ENUM_EXTENSION));
|
verify(clientCodegen).setUseEnumExtension(Boolean.parseBoolean(DartClientOptionsProvider.USE_ENUM_EXTENSION));
|
||||||
|
verify(clientCodegen).setUseLowerCamelCase(Boolean.parseBoolean(DartClientOptionsProvider.USE_LOWER_CAMEL_CASE));
|
||||||
verify(clientCodegen).setEnumUnknownDefaultCase(Boolean.parseBoolean(DartClientOptionsProvider.ENUM_UNKNOWN_DEFAULT_CASE_VALUE));
|
verify(clientCodegen).setEnumUnknownDefaultCase(Boolean.parseBoolean(DartClientOptionsProvider.ENUM_UNKNOWN_DEFAULT_CASE_VALUE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,6 +54,7 @@ public class DartDioClientOptionsTest extends AbstractOptionsTest {
|
|||||||
verify(clientCodegen).setDateLibrary(DartDioClientCodegen.DATE_LIBRARY_DEFAULT);
|
verify(clientCodegen).setDateLibrary(DartDioClientCodegen.DATE_LIBRARY_DEFAULT);
|
||||||
verify(clientCodegen).setLibrary(DartDioClientCodegen.SERIALIZATION_LIBRARY_DEFAULT);
|
verify(clientCodegen).setLibrary(DartDioClientCodegen.SERIALIZATION_LIBRARY_DEFAULT);
|
||||||
verify(clientCodegen).setEqualityCheckMethod(DartDioClientCodegen.EQUALITY_CHECK_METHOD_DEFAULT);
|
verify(clientCodegen).setEqualityCheckMethod(DartDioClientCodegen.EQUALITY_CHECK_METHOD_DEFAULT);
|
||||||
|
verify(clientCodegen).setUseLowerCamelCase(Boolean.parseBoolean(DartDioClientOptionsProvider.USE_LOWER_CAMEL_CASE));
|
||||||
verify(clientCodegen).setEnumUnknownDefaultCase(Boolean.parseBoolean(DartDioClientOptionsProvider.ENUM_UNKNOWN_DEFAULT_CASE_VALUE));
|
verify(clientCodegen).setEnumUnknownDefaultCase(Boolean.parseBoolean(DartDioClientOptionsProvider.ENUM_UNKNOWN_DEFAULT_CASE_VALUE));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,7 @@ public class DartClientOptionsProvider implements OptionsProvider {
|
|||||||
public static final String PUB_PUBLISH_TO_VALUE = "Publish To";
|
public static final String PUB_PUBLISH_TO_VALUE = "Publish To";
|
||||||
public static final String SOURCE_FOLDER_VALUE = "src";
|
public static final String SOURCE_FOLDER_VALUE = "src";
|
||||||
public static final String USE_ENUM_EXTENSION = "true";
|
public static final String USE_ENUM_EXTENSION = "true";
|
||||||
|
public static final String USE_LOWER_CAMEL_CASE = "false";
|
||||||
public static final String ALLOW_UNICODE_IDENTIFIERS_VALUE = "false";
|
public static final String ALLOW_UNICODE_IDENTIFIERS_VALUE = "false";
|
||||||
public static final String PREPEND_FORM_OR_BODY_PARAMETERS_VALUE = "true";
|
public static final String PREPEND_FORM_OR_BODY_PARAMETERS_VALUE = "true";
|
||||||
public static final String ENUM_UNKNOWN_DEFAULT_CASE_VALUE = "false";
|
public static final String ENUM_UNKNOWN_DEFAULT_CASE_VALUE = "false";
|
||||||
@ -64,6 +65,7 @@ public class DartClientOptionsProvider implements OptionsProvider {
|
|||||||
.put(DartClientCodegen.PUB_PUBLISH_TO, PUB_PUBLISH_TO_VALUE)
|
.put(DartClientCodegen.PUB_PUBLISH_TO, PUB_PUBLISH_TO_VALUE)
|
||||||
.put(CodegenConstants.SOURCE_FOLDER, SOURCE_FOLDER_VALUE)
|
.put(CodegenConstants.SOURCE_FOLDER, SOURCE_FOLDER_VALUE)
|
||||||
.put(DartClientCodegen.USE_ENUM_EXTENSION, USE_ENUM_EXTENSION)
|
.put(DartClientCodegen.USE_ENUM_EXTENSION, USE_ENUM_EXTENSION)
|
||||||
|
.put(DartClientCodegen.USE_LOWER_CAMEL_CASE, USE_LOWER_CAMEL_CASE)
|
||||||
.put(CodegenConstants.ALLOW_UNICODE_IDENTIFIERS, ALLOW_UNICODE_IDENTIFIERS_VALUE)
|
.put(CodegenConstants.ALLOW_UNICODE_IDENTIFIERS, ALLOW_UNICODE_IDENTIFIERS_VALUE)
|
||||||
.put(CodegenConstants.PREPEND_FORM_OR_BODY_PARAMETERS, PREPEND_FORM_OR_BODY_PARAMETERS_VALUE)
|
.put(CodegenConstants.PREPEND_FORM_OR_BODY_PARAMETERS, PREPEND_FORM_OR_BODY_PARAMETERS_VALUE)
|
||||||
.put(CodegenConstants.LEGACY_DISCRIMINATOR_BEHAVIOR, "true")
|
.put(CodegenConstants.LEGACY_DISCRIMINATOR_BEHAVIOR, "true")
|
||||||
|
@ -40,6 +40,7 @@ public class DartDioClientOptionsProvider implements OptionsProvider {
|
|||||||
public static final String PUB_REPOSITORY_VALUE = "Repository";
|
public static final String PUB_REPOSITORY_VALUE = "Repository";
|
||||||
public static final String PUB_PUBLISH_TO_VALUE = "Publish to";
|
public static final String PUB_PUBLISH_TO_VALUE = "Publish to";
|
||||||
public static final String ENUM_UNKNOWN_DEFAULT_CASE_VALUE = "false";
|
public static final String ENUM_UNKNOWN_DEFAULT_CASE_VALUE = "false";
|
||||||
|
public static final String USE_LOWER_CAMEL_CASE = "false";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getLanguage() {
|
public String getLanguage() {
|
||||||
@ -67,6 +68,7 @@ public class DartDioClientOptionsProvider implements OptionsProvider {
|
|||||||
.put(DartDioClientCodegen.EQUALITY_CHECK_METHOD, DartDioClientCodegen.EQUALITY_CHECK_METHOD_DEFAULT)
|
.put(DartDioClientCodegen.EQUALITY_CHECK_METHOD, DartDioClientCodegen.EQUALITY_CHECK_METHOD_DEFAULT)
|
||||||
.put(CodegenConstants.SOURCE_FOLDER, SOURCE_FOLDER_VALUE)
|
.put(CodegenConstants.SOURCE_FOLDER, SOURCE_FOLDER_VALUE)
|
||||||
.put(DartDioClientCodegen.USE_ENUM_EXTENSION, USE_ENUM_EXTENSION)
|
.put(DartDioClientCodegen.USE_ENUM_EXTENSION, USE_ENUM_EXTENSION)
|
||||||
|
.put(DartDioClientCodegen.USE_LOWER_CAMEL_CASE, USE_LOWER_CAMEL_CASE)
|
||||||
.put(CodegenConstants.ALLOW_UNICODE_IDENTIFIERS, ALLOW_UNICODE_IDENTIFIERS_VALUE)
|
.put(CodegenConstants.ALLOW_UNICODE_IDENTIFIERS, ALLOW_UNICODE_IDENTIFIERS_VALUE)
|
||||||
.put(CodegenConstants.PREPEND_FORM_OR_BODY_PARAMETERS, PREPEND_FORM_OR_BODY_PARAMETERS_VALUE)
|
.put(CodegenConstants.PREPEND_FORM_OR_BODY_PARAMETERS, PREPEND_FORM_OR_BODY_PARAMETERS_VALUE)
|
||||||
.put(CodegenConstants.LEGACY_DISCRIMINATOR_BEHAVIOR, "true")
|
.put(CodegenConstants.LEGACY_DISCRIMINATOR_BEHAVIOR, "true")
|
||||||
|
@ -1668,6 +1668,11 @@ components:
|
|||||||
- _abc
|
- _abc
|
||||||
- '-efg'
|
- '-efg'
|
||||||
- (xyz)
|
- (xyz)
|
||||||
|
- TEST
|
||||||
|
- TEST_A
|
||||||
|
- TEST_A_ABC
|
||||||
|
- TEST_a
|
||||||
|
- tEST
|
||||||
Enum_Test:
|
Enum_Test:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
|
@ -49,10 +49,10 @@ import 'package:openapi/openapi.dart';
|
|||||||
|
|
||||||
|
|
||||||
final api = Openapi().getBarApi();
|
final api = Openapi().getBarApi();
|
||||||
final BarCreate barcreate = ; // BarCreate |
|
final BarCreate barCreate = ; // BarCreate |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = await api.createBar(barcreate);
|
final response = await api.createBar(barCreate);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print("Exception when calling BarApi->createBar: $e\n");
|
print("Exception when calling BarApi->createBar: $e\n");
|
||||||
|
@ -9,12 +9,12 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | |
|
**id** | **String** | |
|
||||||
**barpropa** | **String** | | [optional]
|
**barPropA** | **String** | | [optional]
|
||||||
**foopropb** | **String** | | [optional]
|
**fooPropB** | **String** | | [optional]
|
||||||
**foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional]
|
**foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -13,7 +13,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
# **createBar**
|
# **createBar**
|
||||||
> Bar createBar(barcreate)
|
> Bar createBar(barCreate)
|
||||||
|
|
||||||
Create a Bar
|
Create a Bar
|
||||||
|
|
||||||
@ -22,10 +22,10 @@ Create a Bar
|
|||||||
import 'package:openapi/api.dart';
|
import 'package:openapi/api.dart';
|
||||||
|
|
||||||
final api = Openapi().getBarApi();
|
final api = Openapi().getBarApi();
|
||||||
final BarCreate barcreate = ; // BarCreate |
|
final BarCreate barCreate = ; // BarCreate |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = api.createBar(barcreate);
|
final response = api.createBar(barCreate);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling BarApi->createBar: $e\n');
|
print('Exception when calling BarApi->createBar: $e\n');
|
||||||
@ -36,7 +36,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**barcreate** | [**BarCreate**](BarCreate.md)| |
|
**barCreate** | [**BarCreate**](BarCreate.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -8,13 +8,13 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**barpropa** | **String** | | [optional]
|
**barPropA** | **String** | | [optional]
|
||||||
**foopropb** | **String** | | [optional]
|
**fooPropB** | **String** | | [optional]
|
||||||
**foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional]
|
**foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**id** | **String** | unique identifier | [optional]
|
**id** | **String** | unique identifier | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -9,11 +9,11 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**name** | **String** | Name of the related entity. | [optional]
|
**name** | **String** | Name of the related entity. | [optional]
|
||||||
**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
|
**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**id** | **String** | unique identifier | [optional]
|
**id** | **String** | unique identifier | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -9,15 +9,15 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **String** | unique identifier |
|
**id** | **String** | unique identifier |
|
||||||
**barpropa** | **String** | | [optional]
|
**barPropA** | **String** | | [optional]
|
||||||
**foopropb** | **String** | | [optional]
|
**fooPropB** | **String** | | [optional]
|
||||||
**foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional]
|
**foo** | [**FooRefOrValue**](FooRefOrValue.md) | | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
**name** | **String** | Name of the related entity. | [optional]
|
**name** | **String** | Name of the related entity. | [optional]
|
||||||
**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
|
**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**id** | **String** | unique identifier | [optional]
|
**id** | **String** | unique identifier | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -9,11 +9,11 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**name** | **String** | Name of the related entity. | [optional]
|
**name** | **String** | Name of the related entity. | [optional]
|
||||||
**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
|
**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**id** | **String** | unique identifier | [optional]
|
**id** | **String** | unique identifier | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -8,8 +8,8 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -8,12 +8,12 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**foopropa** | **String** | | [optional]
|
**fooPropA** | **String** | | [optional]
|
||||||
**foopropb** | **String** | | [optional]
|
**fooPropB** | **String** | | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**id** | **String** | unique identifier | [optional]
|
**id** | **String** | unique identifier | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -8,13 +8,13 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**foorefpropa** | **String** | | [optional]
|
**foorefPropA** | **String** | | [optional]
|
||||||
**name** | **String** | Name of the related entity. | [optional]
|
**name** | **String** | Name of the related entity. | [optional]
|
||||||
**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
|
**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**id** | **String** | unique identifier | [optional]
|
**id** | **String** | unique identifier | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -8,16 +8,16 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**foopropa** | **String** | | [optional]
|
**fooPropA** | **String** | | [optional]
|
||||||
**foopropb** | **String** | | [optional]
|
**fooPropB** | **String** | | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**id** | **String** | unique identifier | [optional]
|
**id** | **String** | unique identifier | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
**foorefpropa** | **String** | | [optional]
|
**foorefPropA** | **String** | | [optional]
|
||||||
**name** | **String** | Name of the related entity. | [optional]
|
**name** | **String** | Name of the related entity. | [optional]
|
||||||
**atReferredtype** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
|
**atReferredType** | **String** | The actual type of the target instance when needed for disambiguation. | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**fruittype** | [**FruitType**](FruitType.md) | |
|
**fruitType** | [**FruitType**](FruitType.md) | |
|
||||||
**seeds** | **int** | |
|
**seeds** | **int** | |
|
||||||
**length** | **int** | |
|
**length** | **int** | |
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@ Name | Type | Description | Notes
|
|||||||
**vendor** | **String** | | [optional]
|
**vendor** | **String** | | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**id** | **String** | unique identifier | [optional]
|
**id** | **String** | unique identifier | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -8,11 +8,11 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**pizzasize** | **num** | | [optional]
|
**pizzaSize** | **num** | | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**id** | **String** | unique identifier | [optional]
|
**id** | **String** | unique identifier | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -9,11 +9,11 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**toppings** | **String** | | [optional]
|
**toppings** | **String** | | [optional]
|
||||||
**pizzasize** | **num** | | [optional]
|
**pizzaSize** | **num** | | [optional]
|
||||||
**href** | **String** | Hyperlink reference | [optional]
|
**href** | **String** | Hyperlink reference | [optional]
|
||||||
**id** | **String** | unique identifier | [optional]
|
**id** | **String** | unique identifier | [optional]
|
||||||
**atSchemalocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
**atSchemaLocation** | **String** | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional]
|
||||||
**atBasetype** | **String** | When sub-classing, this defines the super-class | [optional]
|
**atBaseType** | **String** | When sub-classing, this defines the super-class | [optional]
|
||||||
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
**atType** | **String** | When sub-classing, this defines the sub-class Extensible name |
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -23,7 +23,7 @@ class BarApi {
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [barcreate]
|
/// * [barCreate]
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -34,7 +34,7 @@ class BarApi {
|
|||||||
/// Returns a [Future] containing a [Response] with a [Bar] as data
|
/// Returns a [Future] containing a [Response] with a [Bar] as data
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<Bar>> createBar({
|
Future<Response<Bar>> createBar({
|
||||||
required BarCreate barcreate,
|
required BarCreate barCreate,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -60,7 +60,7 @@ class BarApi {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const _type = FullType(BarCreate);
|
const _type = FullType(BarCreate);
|
||||||
_bodyData = _serializers.serialize(barcreate, specifiedType: _type);
|
_bodyData = _serializers.serialize(barCreate, specifiedType: _type);
|
||||||
|
|
||||||
} catch(error, stackTrace) {
|
} catch(error, stackTrace) {
|
||||||
throw DioException(
|
throw DioException(
|
||||||
|
@ -14,23 +14,23 @@ part 'bar.g.dart';
|
|||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [id]
|
/// * [id]
|
||||||
/// * [barpropa]
|
/// * [barPropA]
|
||||||
/// * [foopropb]
|
/// * [fooPropB]
|
||||||
/// * [foo]
|
/// * [foo]
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue()
|
@BuiltValue()
|
||||||
abstract class Bar implements Entity, Built<Bar, BarBuilder> {
|
abstract class Bar implements Entity, Built<Bar, BarBuilder> {
|
||||||
@BuiltValueField(wireName: r'foo')
|
@BuiltValueField(wireName: r'foo')
|
||||||
FooRefOrValue? get foo;
|
FooRefOrValue? get foo;
|
||||||
|
|
||||||
@BuiltValueField(wireName: r'barPropA')
|
|
||||||
String? get barpropa;
|
|
||||||
|
|
||||||
@BuiltValueField(wireName: r'fooPropB')
|
@BuiltValueField(wireName: r'fooPropB')
|
||||||
String? get foopropb;
|
String? get fooPropB;
|
||||||
|
|
||||||
|
@BuiltValueField(wireName: r'barPropA')
|
||||||
|
String? get barPropA;
|
||||||
|
|
||||||
Bar._();
|
Bar._();
|
||||||
|
|
||||||
@ -55,10 +55,10 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
|
|||||||
Bar object, {
|
Bar object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
if (object.atSchemalocation != null) {
|
if (object.atSchemaLocation != null) {
|
||||||
yield r'@schemaLocation';
|
yield r'@schemaLocation';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atSchemalocation,
|
object.atSchemaLocation,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -69,6 +69,20 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
|
|||||||
specifiedType: const FullType(FooRefOrValue),
|
specifiedType: const FullType(FooRefOrValue),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (object.atBaseType != null) {
|
||||||
|
yield r'@baseType';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atBaseType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (object.fooPropB != null) {
|
||||||
|
yield r'fooPropB';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.fooPropB,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
if (object.href != null) {
|
if (object.href != null) {
|
||||||
yield r'href';
|
yield r'href';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
@ -83,32 +97,18 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.barpropa != null) {
|
|
||||||
yield r'barPropA';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.barpropa,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (object.foopropb != null) {
|
|
||||||
yield r'fooPropB';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.foopropb,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (object.atBasetype != null) {
|
|
||||||
yield r'@baseType';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atBasetype,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
yield r'@type';
|
yield r'@type';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atType,
|
object.atType,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
|
if (object.barPropA != null) {
|
||||||
|
yield r'barPropA';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.barPropA,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -137,7 +137,7 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
|
|||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atSchemalocation = valueDes;
|
result.atSchemaLocation = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'foo':
|
case r'foo':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
@ -146,6 +146,20 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
|
|||||||
) as FooRefOrValue;
|
) as FooRefOrValue;
|
||||||
result.foo.replace(valueDes);
|
result.foo.replace(valueDes);
|
||||||
break;
|
break;
|
||||||
|
case r'@baseType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atBaseType = valueDes;
|
||||||
|
break;
|
||||||
|
case r'fooPropB':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.fooPropB = valueDes;
|
||||||
|
break;
|
||||||
case r'href':
|
case r'href':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
@ -160,27 +174,6 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.id = valueDes;
|
result.id = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'barPropA':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.barpropa = valueDes;
|
|
||||||
break;
|
|
||||||
case r'fooPropB':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.foopropb = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@baseType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atBasetype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
@ -188,6 +181,13 @@ class _$BarSerializer implements PrimitiveSerializer<Bar> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.atType = valueDes;
|
result.atType = valueDes;
|
||||||
break;
|
break;
|
||||||
|
case r'barPropA':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.barPropA = valueDes;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
unhandled.add(key);
|
unhandled.add(key);
|
||||||
unhandled.add(value);
|
unhandled.add(value);
|
||||||
|
@ -13,24 +13,24 @@ part 'bar_create.g.dart';
|
|||||||
/// BarCreate
|
/// BarCreate
|
||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [barpropa]
|
/// * [barPropA]
|
||||||
/// * [foopropb]
|
/// * [fooPropB]
|
||||||
/// * [foo]
|
/// * [foo]
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue()
|
@BuiltValue()
|
||||||
abstract class BarCreate implements Entity, Built<BarCreate, BarCreateBuilder> {
|
abstract class BarCreate implements Entity, Built<BarCreate, BarCreateBuilder> {
|
||||||
@BuiltValueField(wireName: r'foo')
|
@BuiltValueField(wireName: r'foo')
|
||||||
FooRefOrValue? get foo;
|
FooRefOrValue? get foo;
|
||||||
|
|
||||||
@BuiltValueField(wireName: r'barPropA')
|
|
||||||
String? get barpropa;
|
|
||||||
|
|
||||||
@BuiltValueField(wireName: r'fooPropB')
|
@BuiltValueField(wireName: r'fooPropB')
|
||||||
String? get foopropb;
|
String? get fooPropB;
|
||||||
|
|
||||||
|
@BuiltValueField(wireName: r'barPropA')
|
||||||
|
String? get barPropA;
|
||||||
|
|
||||||
BarCreate._();
|
BarCreate._();
|
||||||
|
|
||||||
@ -55,10 +55,10 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
|
|||||||
BarCreate object, {
|
BarCreate object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
if (object.atSchemalocation != null) {
|
if (object.atSchemaLocation != null) {
|
||||||
yield r'@schemaLocation';
|
yield r'@schemaLocation';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atSchemalocation,
|
object.atSchemaLocation,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -69,6 +69,20 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
|
|||||||
specifiedType: const FullType(FooRefOrValue),
|
specifiedType: const FullType(FooRefOrValue),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (object.atBaseType != null) {
|
||||||
|
yield r'@baseType';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atBaseType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (object.fooPropB != null) {
|
||||||
|
yield r'fooPropB';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.fooPropB,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
if (object.href != null) {
|
if (object.href != null) {
|
||||||
yield r'href';
|
yield r'href';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
@ -83,32 +97,18 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.barpropa != null) {
|
|
||||||
yield r'barPropA';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.barpropa,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (object.foopropb != null) {
|
|
||||||
yield r'fooPropB';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.foopropb,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (object.atBasetype != null) {
|
|
||||||
yield r'@baseType';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atBasetype,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
yield r'@type';
|
yield r'@type';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atType,
|
object.atType,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
|
if (object.barPropA != null) {
|
||||||
|
yield r'barPropA';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.barPropA,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -137,7 +137,7 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
|
|||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atSchemalocation = valueDes;
|
result.atSchemaLocation = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'foo':
|
case r'foo':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
@ -146,6 +146,20 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
|
|||||||
) as FooRefOrValue;
|
) as FooRefOrValue;
|
||||||
result.foo.replace(valueDes);
|
result.foo.replace(valueDes);
|
||||||
break;
|
break;
|
||||||
|
case r'@baseType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atBaseType = valueDes;
|
||||||
|
break;
|
||||||
|
case r'fooPropB':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.fooPropB = valueDes;
|
||||||
|
break;
|
||||||
case r'href':
|
case r'href':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
@ -160,27 +174,6 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.id = valueDes;
|
result.id = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'barPropA':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.barpropa = valueDes;
|
|
||||||
break;
|
|
||||||
case r'fooPropB':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.foopropb = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@baseType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atBasetype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
@ -188,6 +181,13 @@ class _$BarCreateSerializer implements PrimitiveSerializer<BarCreate> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.atType = valueDes;
|
result.atType = valueDes;
|
||||||
break;
|
break;
|
||||||
|
case r'barPropA':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.barPropA = valueDes;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
unhandled.add(key);
|
unhandled.add(key);
|
||||||
unhandled.add(value);
|
unhandled.add(value);
|
||||||
|
@ -13,11 +13,11 @@ part 'bar_ref.g.dart';
|
|||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [name] - Name of the related entity.
|
/// * [name] - Name of the related entity.
|
||||||
/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation.
|
/// * [atReferredType] - The actual type of the target instance when needed for disambiguation.
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue()
|
@BuiltValue()
|
||||||
abstract class BarRef implements EntityRef, Built<BarRef, BarRefBuilder> {
|
abstract class BarRef implements EntityRef, Built<BarRef, BarRefBuilder> {
|
||||||
@ -44,17 +44,17 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
|
|||||||
BarRef object, {
|
BarRef object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
if (object.atSchemalocation != null) {
|
if (object.atSchemaLocation != null) {
|
||||||
yield r'@schemaLocation';
|
yield r'@schemaLocation';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atSchemalocation,
|
object.atSchemaLocation,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.atReferredtype != null) {
|
if (object.atReferredType != null) {
|
||||||
yield r'@referredType';
|
yield r'@referredType';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atReferredtype,
|
object.atReferredType,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -65,6 +65,13 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (object.atBaseType != null) {
|
||||||
|
yield r'@baseType';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atBaseType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
if (object.href != null) {
|
if (object.href != null) {
|
||||||
yield r'href';
|
yield r'href';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
@ -79,13 +86,6 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.atBasetype != null) {
|
|
||||||
yield r'@baseType';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atBasetype,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
yield r'@type';
|
yield r'@type';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atType,
|
object.atType,
|
||||||
@ -119,14 +119,14 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
|
|||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atSchemalocation = valueDes;
|
result.atSchemaLocation = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'@referredType':
|
case r'@referredType':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atReferredtype = valueDes;
|
result.atReferredType = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'name':
|
case r'name':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
@ -135,6 +135,13 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.name = valueDes;
|
result.name = valueDes;
|
||||||
break;
|
break;
|
||||||
|
case r'@baseType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atBaseType = valueDes;
|
||||||
|
break;
|
||||||
case r'href':
|
case r'href':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
@ -149,13 +156,6 @@ class _$BarRefSerializer implements PrimitiveSerializer<BarRef> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.id = valueDes;
|
result.id = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'@baseType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atBasetype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
|
@ -16,15 +16,15 @@ part 'bar_ref_or_value.g.dart';
|
|||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [barpropa]
|
/// * [barPropA]
|
||||||
/// * [foopropb]
|
/// * [fooPropB]
|
||||||
/// * [foo]
|
/// * [foo]
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
/// * [name] - Name of the related entity.
|
/// * [name] - Name of the related entity.
|
||||||
/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation.
|
/// * [atReferredType] - The actual type of the target instance when needed for disambiguation.
|
||||||
@BuiltValue()
|
@BuiltValue()
|
||||||
abstract class BarRefOrValue implements Built<BarRefOrValue, BarRefOrValueBuilder> {
|
abstract class BarRefOrValue implements Built<BarRefOrValue, BarRefOrValueBuilder> {
|
||||||
/// One Of [Bar], [BarRef]
|
/// One Of [Bar], [BarRef]
|
||||||
|
@ -21,8 +21,8 @@ part 'entity.g.dart';
|
|||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue(instantiable: false)
|
@BuiltValue(instantiable: false)
|
||||||
abstract class Entity implements Addressable, Extensible {
|
abstract class Entity implements Addressable, Extensible {
|
||||||
@ -100,6 +100,20 @@ class _$EntitySerializer implements PrimitiveSerializer<Entity> {
|
|||||||
Entity object, {
|
Entity object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
|
if (object.atSchemaLocation != null) {
|
||||||
|
yield r'@schemaLocation';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atSchemaLocation,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (object.atBaseType != null) {
|
||||||
|
yield r'@baseType';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atBaseType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
if (object.href != null) {
|
if (object.href != null) {
|
||||||
yield r'href';
|
yield r'href';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
@ -114,20 +128,6 @@ class _$EntitySerializer implements PrimitiveSerializer<Entity> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.atSchemalocation != null) {
|
|
||||||
yield r'@schemaLocation';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atSchemalocation,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (object.atBasetype != null) {
|
|
||||||
yield r'@baseType';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atBasetype,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
yield r'@type';
|
yield r'@type';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atType,
|
object.atType,
|
||||||
@ -232,6 +232,20 @@ class _$$EntitySerializer implements PrimitiveSerializer<$Entity> {
|
|||||||
final key = serializedList[i] as String;
|
final key = serializedList[i] as String;
|
||||||
final value = serializedList[i + 1];
|
final value = serializedList[i + 1];
|
||||||
switch (key) {
|
switch (key) {
|
||||||
|
case r'@schemaLocation':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atSchemaLocation = valueDes;
|
||||||
|
break;
|
||||||
|
case r'@baseType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atBaseType = valueDes;
|
||||||
|
break;
|
||||||
case r'href':
|
case r'href':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
@ -246,20 +260,6 @@ class _$$EntitySerializer implements PrimitiveSerializer<$Entity> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.id = valueDes;
|
result.id = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'@schemaLocation':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atSchemalocation = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@baseType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atBasetype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
|
@ -16,17 +16,17 @@ part 'entity_ref.g.dart';
|
|||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [name] - Name of the related entity.
|
/// * [name] - Name of the related entity.
|
||||||
/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation.
|
/// * [atReferredType] - The actual type of the target instance when needed for disambiguation.
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue(instantiable: false)
|
@BuiltValue(instantiable: false)
|
||||||
abstract class EntityRef implements Addressable, Extensible {
|
abstract class EntityRef implements Addressable, Extensible {
|
||||||
/// The actual type of the target instance when needed for disambiguation.
|
/// The actual type of the target instance when needed for disambiguation.
|
||||||
@BuiltValueField(wireName: r'@referredType')
|
@BuiltValueField(wireName: r'@referredType')
|
||||||
String? get atReferredtype;
|
String? get atReferredType;
|
||||||
|
|
||||||
/// Name of the related entity.
|
/// Name of the related entity.
|
||||||
@BuiltValueField(wireName: r'name')
|
@BuiltValueField(wireName: r'name')
|
||||||
@ -78,17 +78,17 @@ class _$EntityRefSerializer implements PrimitiveSerializer<EntityRef> {
|
|||||||
EntityRef object, {
|
EntityRef object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
if (object.atReferredtype != null) {
|
if (object.atSchemaLocation != null) {
|
||||||
yield r'@referredType';
|
yield r'@schemaLocation';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atReferredtype,
|
object.atSchemaLocation,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.atSchemalocation != null) {
|
if (object.atReferredType != null) {
|
||||||
yield r'@schemaLocation';
|
yield r'@referredType';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atSchemalocation,
|
object.atReferredType,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -99,6 +99,13 @@ class _$EntityRefSerializer implements PrimitiveSerializer<EntityRef> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (object.atBaseType != null) {
|
||||||
|
yield r'@baseType';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atBaseType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
if (object.href != null) {
|
if (object.href != null) {
|
||||||
yield r'href';
|
yield r'href';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
@ -113,13 +120,6 @@ class _$EntityRefSerializer implements PrimitiveSerializer<EntityRef> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.atBasetype != null) {
|
|
||||||
yield r'@baseType';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atBasetype,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
yield r'@type';
|
yield r'@type';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atType,
|
object.atType,
|
||||||
@ -204,19 +204,19 @@ class _$$EntityRefSerializer implements PrimitiveSerializer<$EntityRef> {
|
|||||||
final key = serializedList[i] as String;
|
final key = serializedList[i] as String;
|
||||||
final value = serializedList[i + 1];
|
final value = serializedList[i + 1];
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case r'@referredType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atReferredtype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@schemaLocation':
|
case r'@schemaLocation':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atSchemalocation = valueDes;
|
result.atSchemaLocation = valueDes;
|
||||||
|
break;
|
||||||
|
case r'@referredType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atReferredType = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'name':
|
case r'name':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
@ -225,6 +225,13 @@ class _$$EntityRefSerializer implements PrimitiveSerializer<$EntityRef> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.name = valueDes;
|
result.name = valueDes;
|
||||||
break;
|
break;
|
||||||
|
case r'@baseType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atBaseType = valueDes;
|
||||||
|
break;
|
||||||
case r'href':
|
case r'href':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
@ -239,13 +246,6 @@ class _$$EntityRefSerializer implements PrimitiveSerializer<$EntityRef> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.id = valueDes;
|
result.id = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'@baseType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atBasetype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
|
@ -11,18 +11,18 @@ part 'extensible.g.dart';
|
|||||||
/// Extensible
|
/// Extensible
|
||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue(instantiable: false)
|
@BuiltValue(instantiable: false)
|
||||||
abstract class Extensible {
|
abstract class Extensible {
|
||||||
/// A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
@BuiltValueField(wireName: r'@schemaLocation')
|
@BuiltValueField(wireName: r'@schemaLocation')
|
||||||
String? get atSchemalocation;
|
String? get atSchemaLocation;
|
||||||
|
|
||||||
/// When sub-classing, this defines the super-class
|
/// When sub-classing, this defines the super-class
|
||||||
@BuiltValueField(wireName: r'@baseType')
|
@BuiltValueField(wireName: r'@baseType')
|
||||||
String? get atBasetype;
|
String? get atBaseType;
|
||||||
|
|
||||||
/// When sub-classing, this defines the sub-class Extensible name
|
/// When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValueField(wireName: r'@type')
|
@BuiltValueField(wireName: r'@type')
|
||||||
@ -44,17 +44,17 @@ class _$ExtensibleSerializer implements PrimitiveSerializer<Extensible> {
|
|||||||
Extensible object, {
|
Extensible object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
if (object.atSchemalocation != null) {
|
if (object.atSchemaLocation != null) {
|
||||||
yield r'@schemaLocation';
|
yield r'@schemaLocation';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atSchemalocation,
|
object.atSchemaLocation,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.atBasetype != null) {
|
if (object.atBaseType != null) {
|
||||||
yield r'@baseType';
|
yield r'@baseType';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atBasetype,
|
object.atBaseType,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -131,14 +131,14 @@ class _$$ExtensibleSerializer implements PrimitiveSerializer<$Extensible> {
|
|||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atSchemalocation = valueDes;
|
result.atSchemaLocation = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'@baseType':
|
case r'@baseType':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atBasetype = valueDes;
|
result.atBaseType = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
|
@ -12,20 +12,20 @@ part 'foo.g.dart';
|
|||||||
/// Foo
|
/// Foo
|
||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [foopropa]
|
/// * [fooPropA]
|
||||||
/// * [foopropb]
|
/// * [fooPropB]
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue()
|
@BuiltValue()
|
||||||
abstract class Foo implements Entity, Built<Foo, FooBuilder> {
|
abstract class Foo implements Entity, Built<Foo, FooBuilder> {
|
||||||
@BuiltValueField(wireName: r'fooPropB')
|
|
||||||
String? get foopropb;
|
|
||||||
|
|
||||||
@BuiltValueField(wireName: r'fooPropA')
|
@BuiltValueField(wireName: r'fooPropA')
|
||||||
String? get foopropa;
|
String? get fooPropA;
|
||||||
|
|
||||||
|
@BuiltValueField(wireName: r'fooPropB')
|
||||||
|
String? get fooPropB;
|
||||||
|
|
||||||
Foo._();
|
Foo._();
|
||||||
|
|
||||||
@ -50,10 +50,31 @@ class _$FooSerializer implements PrimitiveSerializer<Foo> {
|
|||||||
Foo object, {
|
Foo object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
if (object.atSchemalocation != null) {
|
if (object.atSchemaLocation != null) {
|
||||||
yield r'@schemaLocation';
|
yield r'@schemaLocation';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atSchemalocation,
|
object.atSchemaLocation,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (object.fooPropA != null) {
|
||||||
|
yield r'fooPropA';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.fooPropA,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (object.atBaseType != null) {
|
||||||
|
yield r'@baseType';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atBaseType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (object.fooPropB != null) {
|
||||||
|
yield r'fooPropB';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.fooPropB,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -71,27 +92,6 @@ class _$FooSerializer implements PrimitiveSerializer<Foo> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.foopropb != null) {
|
|
||||||
yield r'fooPropB';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.foopropb,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (object.foopropa != null) {
|
|
||||||
yield r'fooPropA';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.foopropa,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (object.atBasetype != null) {
|
|
||||||
yield r'@baseType';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atBasetype,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
yield r'@type';
|
yield r'@type';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atType,
|
object.atType,
|
||||||
@ -125,7 +125,28 @@ class _$FooSerializer implements PrimitiveSerializer<Foo> {
|
|||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atSchemalocation = valueDes;
|
result.atSchemaLocation = valueDes;
|
||||||
|
break;
|
||||||
|
case r'fooPropA':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.fooPropA = valueDes;
|
||||||
|
break;
|
||||||
|
case r'@baseType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atBaseType = valueDes;
|
||||||
|
break;
|
||||||
|
case r'fooPropB':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.fooPropB = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'href':
|
case r'href':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
@ -141,27 +162,6 @@ class _$FooSerializer implements PrimitiveSerializer<Foo> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.id = valueDes;
|
result.id = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'fooPropB':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.foopropb = valueDes;
|
|
||||||
break;
|
|
||||||
case r'fooPropA':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.foopropa = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@baseType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atBasetype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
|
@ -12,18 +12,18 @@ part 'foo_ref.g.dart';
|
|||||||
/// FooRef
|
/// FooRef
|
||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [foorefpropa]
|
/// * [foorefPropA]
|
||||||
/// * [name] - Name of the related entity.
|
/// * [name] - Name of the related entity.
|
||||||
/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation.
|
/// * [atReferredType] - The actual type of the target instance when needed for disambiguation.
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue()
|
@BuiltValue()
|
||||||
abstract class FooRef implements EntityRef, Built<FooRef, FooRefBuilder> {
|
abstract class FooRef implements EntityRef, Built<FooRef, FooRefBuilder> {
|
||||||
@BuiltValueField(wireName: r'foorefPropA')
|
@BuiltValueField(wireName: r'foorefPropA')
|
||||||
String? get foorefpropa;
|
String? get foorefPropA;
|
||||||
|
|
||||||
FooRef._();
|
FooRef._();
|
||||||
|
|
||||||
@ -48,17 +48,24 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
|
|||||||
FooRef object, {
|
FooRef object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
if (object.atSchemalocation != null) {
|
if (object.atSchemaLocation != null) {
|
||||||
yield r'@schemaLocation';
|
yield r'@schemaLocation';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atSchemalocation,
|
object.atSchemaLocation,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.atReferredtype != null) {
|
if (object.atReferredType != null) {
|
||||||
yield r'@referredType';
|
yield r'@referredType';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atReferredtype,
|
object.atReferredType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (object.foorefPropA != null) {
|
||||||
|
yield r'foorefPropA';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.foorefPropA,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -69,6 +76,13 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (object.atBaseType != null) {
|
||||||
|
yield r'@baseType';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atBaseType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
if (object.href != null) {
|
if (object.href != null) {
|
||||||
yield r'href';
|
yield r'href';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
@ -83,20 +97,6 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.foorefpropa != null) {
|
|
||||||
yield r'foorefPropA';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.foorefpropa,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (object.atBasetype != null) {
|
|
||||||
yield r'@baseType';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atBasetype,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
yield r'@type';
|
yield r'@type';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atType,
|
object.atType,
|
||||||
@ -130,14 +130,21 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
|
|||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atSchemalocation = valueDes;
|
result.atSchemaLocation = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'@referredType':
|
case r'@referredType':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atReferredtype = valueDes;
|
result.atReferredType = valueDes;
|
||||||
|
break;
|
||||||
|
case r'foorefPropA':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.foorefPropA = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'name':
|
case r'name':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
@ -146,6 +153,13 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.name = valueDes;
|
result.name = valueDes;
|
||||||
break;
|
break;
|
||||||
|
case r'@baseType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atBaseType = valueDes;
|
||||||
|
break;
|
||||||
case r'href':
|
case r'href':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
@ -160,20 +174,6 @@ class _$FooRefSerializer implements PrimitiveSerializer<FooRef> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.id = valueDes;
|
result.id = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'foorefPropA':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.foorefpropa = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@baseType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atBasetype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
|
@ -14,16 +14,16 @@ part 'foo_ref_or_value.g.dart';
|
|||||||
/// FooRefOrValue
|
/// FooRefOrValue
|
||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [foopropa]
|
/// * [fooPropA]
|
||||||
/// * [foopropb]
|
/// * [fooPropB]
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
/// * [foorefpropa]
|
/// * [foorefPropA]
|
||||||
/// * [name] - Name of the related entity.
|
/// * [name] - Name of the related entity.
|
||||||
/// * [atReferredtype] - The actual type of the target instance when needed for disambiguation.
|
/// * [atReferredType] - The actual type of the target instance when needed for disambiguation.
|
||||||
@BuiltValue()
|
@BuiltValue()
|
||||||
abstract class FooRefOrValue implements Built<FooRefOrValue, FooRefOrValueBuilder> {
|
abstract class FooRefOrValue implements Built<FooRefOrValue, FooRefOrValueBuilder> {
|
||||||
/// One Of [Foo], [FooRef]
|
/// One Of [Foo], [FooRef]
|
||||||
|
@ -15,14 +15,14 @@ part 'fruit.g.dart';
|
|||||||
/// Fruit
|
/// Fruit
|
||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [fruittype]
|
/// * [fruitType]
|
||||||
/// * [seeds]
|
/// * [seeds]
|
||||||
/// * [length]
|
/// * [length]
|
||||||
@BuiltValue()
|
@BuiltValue()
|
||||||
abstract class Fruit implements Built<Fruit, FruitBuilder> {
|
abstract class Fruit implements Built<Fruit, FruitBuilder> {
|
||||||
@BuiltValueField(wireName: r'fruitType')
|
@BuiltValueField(wireName: r'fruitType')
|
||||||
FruitType get fruittype;
|
FruitType get fruitType;
|
||||||
// enum fruittypeEnum { APPLE, BANANA, };
|
// enum fruitTypeEnum { APPLE, BANANA, };
|
||||||
|
|
||||||
/// One Of [Apple], [Banana]
|
/// One Of [Apple], [Banana]
|
||||||
OneOf get oneOf;
|
OneOf get oneOf;
|
||||||
@ -82,7 +82,7 @@ class _$FruitSerializer implements PrimitiveSerializer<Fruit> {
|
|||||||
}) sync* {
|
}) sync* {
|
||||||
yield r'fruitType';
|
yield r'fruitType';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.fruittype,
|
object.fruitType,
|
||||||
specifiedType: const FullType(FruitType),
|
specifiedType: const FullType(FruitType),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -116,7 +116,7 @@ class _$FruitSerializer implements PrimitiveSerializer<Fruit> {
|
|||||||
value,
|
value,
|
||||||
specifiedType: const FullType(FruitType),
|
specifiedType: const FullType(FruitType),
|
||||||
) as FruitType;
|
) as FruitType;
|
||||||
result.fruittype = valueDes;
|
result.fruitType = valueDes;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
unhandled.add(key);
|
unhandled.add(key);
|
||||||
|
@ -12,9 +12,9 @@ part 'fruit_type.g.dart';
|
|||||||
class FruitType extends EnumClass {
|
class FruitType extends EnumClass {
|
||||||
|
|
||||||
@BuiltValueEnumConst(wireName: r'APPLE')
|
@BuiltValueEnumConst(wireName: r'APPLE')
|
||||||
static const FruitType apple = _$apple;
|
static const FruitType APPLE = _$APPLE;
|
||||||
@BuiltValueEnumConst(wireName: r'BANANA')
|
@BuiltValueEnumConst(wireName: r'BANANA')
|
||||||
static const FruitType banana = _$banana;
|
static const FruitType BANANA = _$BANANA;
|
||||||
@BuiltValueEnumConst(wireName: r'unknown_default_open_api', fallback: true)
|
@BuiltValueEnumConst(wireName: r'unknown_default_open_api', fallback: true)
|
||||||
static const FruitType unknownDefaultOpenApi = _$unknownDefaultOpenApi;
|
static const FruitType unknownDefaultOpenApi = _$unknownDefaultOpenApi;
|
||||||
|
|
||||||
|
@ -15,8 +15,8 @@ part 'pasta.g.dart';
|
|||||||
/// * [vendor]
|
/// * [vendor]
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue()
|
@BuiltValue()
|
||||||
abstract class Pasta implements Entity, Built<Pasta, PastaBuilder> {
|
abstract class Pasta implements Entity, Built<Pasta, PastaBuilder> {
|
||||||
@ -46,6 +46,20 @@ class _$PastaSerializer implements PrimitiveSerializer<Pasta> {
|
|||||||
Pasta object, {
|
Pasta object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
|
if (object.atSchemaLocation != null) {
|
||||||
|
yield r'@schemaLocation';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atSchemaLocation,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (object.atBaseType != null) {
|
||||||
|
yield r'@baseType';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atBaseType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
if (object.href != null) {
|
if (object.href != null) {
|
||||||
yield r'href';
|
yield r'href';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
@ -60,20 +74,6 @@ class _$PastaSerializer implements PrimitiveSerializer<Pasta> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.atSchemalocation != null) {
|
|
||||||
yield r'@schemaLocation';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atSchemalocation,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (object.atBasetype != null) {
|
|
||||||
yield r'@baseType';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atBasetype,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
yield r'@type';
|
yield r'@type';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atType,
|
object.atType,
|
||||||
@ -109,6 +109,20 @@ class _$PastaSerializer implements PrimitiveSerializer<Pasta> {
|
|||||||
final key = serializedList[i] as String;
|
final key = serializedList[i] as String;
|
||||||
final value = serializedList[i + 1];
|
final value = serializedList[i + 1];
|
||||||
switch (key) {
|
switch (key) {
|
||||||
|
case r'@schemaLocation':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atSchemaLocation = valueDes;
|
||||||
|
break;
|
||||||
|
case r'@baseType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atBaseType = valueDes;
|
||||||
|
break;
|
||||||
case r'href':
|
case r'href':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
@ -123,20 +137,6 @@ class _$PastaSerializer implements PrimitiveSerializer<Pasta> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.id = valueDes;
|
result.id = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'@schemaLocation':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atSchemalocation = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@baseType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atBasetype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
|
@ -13,16 +13,16 @@ part 'pizza.g.dart';
|
|||||||
/// Pizza
|
/// Pizza
|
||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [pizzasize]
|
/// * [pizzaSize]
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue(instantiable: false)
|
@BuiltValue(instantiable: false)
|
||||||
abstract class Pizza implements Entity {
|
abstract class Pizza implements Entity {
|
||||||
@BuiltValueField(wireName: r'pizzaSize')
|
@BuiltValueField(wireName: r'pizzaSize')
|
||||||
num? get pizzasize;
|
num? get pizzaSize;
|
||||||
|
|
||||||
static const String discriminatorFieldName = r'@type';
|
static const String discriminatorFieldName = r'@type';
|
||||||
|
|
||||||
@ -63,13 +63,27 @@ class _$PizzaSerializer implements PrimitiveSerializer<Pizza> {
|
|||||||
Pizza object, {
|
Pizza object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
if (object.pizzasize != null) {
|
if (object.pizzaSize != null) {
|
||||||
yield r'pizzaSize';
|
yield r'pizzaSize';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.pizzasize,
|
object.pizzaSize,
|
||||||
specifiedType: const FullType(num),
|
specifiedType: const FullType(num),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (object.atSchemaLocation != null) {
|
||||||
|
yield r'@schemaLocation';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atSchemaLocation,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
if (object.atBaseType != null) {
|
||||||
|
yield r'@baseType';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atBaseType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
if (object.href != null) {
|
if (object.href != null) {
|
||||||
yield r'href';
|
yield r'href';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
@ -84,20 +98,6 @@ class _$PizzaSerializer implements PrimitiveSerializer<Pizza> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.atSchemalocation != null) {
|
|
||||||
yield r'@schemaLocation';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atSchemalocation,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
if (object.atBasetype != null) {
|
|
||||||
yield r'@baseType';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atBasetype,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
yield r'@type';
|
yield r'@type';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atType,
|
object.atType,
|
||||||
@ -182,7 +182,21 @@ class _$$PizzaSerializer implements PrimitiveSerializer<$Pizza> {
|
|||||||
value,
|
value,
|
||||||
specifiedType: const FullType(num),
|
specifiedType: const FullType(num),
|
||||||
) as num;
|
) as num;
|
||||||
result.pizzasize = valueDes;
|
result.pizzaSize = valueDes;
|
||||||
|
break;
|
||||||
|
case r'@schemaLocation':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atSchemaLocation = valueDes;
|
||||||
|
break;
|
||||||
|
case r'@baseType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atBaseType = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'href':
|
case r'href':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
@ -198,20 +212,6 @@ class _$$PizzaSerializer implements PrimitiveSerializer<$Pizza> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.id = valueDes;
|
result.id = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'@schemaLocation':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atSchemalocation = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@baseType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atBasetype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
|
@ -13,11 +13,11 @@ part 'pizza_speziale.g.dart';
|
|||||||
///
|
///
|
||||||
/// Properties:
|
/// Properties:
|
||||||
/// * [toppings]
|
/// * [toppings]
|
||||||
/// * [pizzasize]
|
/// * [pizzaSize]
|
||||||
/// * [href] - Hyperlink reference
|
/// * [href] - Hyperlink reference
|
||||||
/// * [id] - unique identifier
|
/// * [id] - unique identifier
|
||||||
/// * [atSchemalocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
/// * [atSchemaLocation] - A URI to a JSON-Schema file that defines additional attributes and relationships
|
||||||
/// * [atBasetype] - When sub-classing, this defines the super-class
|
/// * [atBaseType] - When sub-classing, this defines the super-class
|
||||||
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
/// * [atType] - When sub-classing, this defines the sub-class Extensible name
|
||||||
@BuiltValue()
|
@BuiltValue()
|
||||||
abstract class PizzaSpeziale implements Pizza, Built<PizzaSpeziale, PizzaSpezialeBuilder> {
|
abstract class PizzaSpeziale implements Pizza, Built<PizzaSpeziale, PizzaSpezialeBuilder> {
|
||||||
@ -47,17 +47,17 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
|
|||||||
PizzaSpeziale object, {
|
PizzaSpeziale object, {
|
||||||
FullType specifiedType = FullType.unspecified,
|
FullType specifiedType = FullType.unspecified,
|
||||||
}) sync* {
|
}) sync* {
|
||||||
if (object.atSchemalocation != null) {
|
if (object.atSchemaLocation != null) {
|
||||||
yield r'@schemaLocation';
|
yield r'@schemaLocation';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atSchemalocation,
|
object.atSchemaLocation,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.pizzasize != null) {
|
if (object.pizzaSize != null) {
|
||||||
yield r'pizzaSize';
|
yield r'pizzaSize';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.pizzasize,
|
object.pizzaSize,
|
||||||
specifiedType: const FullType(num),
|
specifiedType: const FullType(num),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -68,6 +68,13 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (object.atBaseType != null) {
|
||||||
|
yield r'@baseType';
|
||||||
|
yield serializers.serialize(
|
||||||
|
object.atBaseType,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
);
|
||||||
|
}
|
||||||
if (object.href != null) {
|
if (object.href != null) {
|
||||||
yield r'href';
|
yield r'href';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
@ -82,13 +89,6 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
|
|||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (object.atBasetype != null) {
|
|
||||||
yield r'@baseType';
|
|
||||||
yield serializers.serialize(
|
|
||||||
object.atBasetype,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
yield r'@type';
|
yield r'@type';
|
||||||
yield serializers.serialize(
|
yield serializers.serialize(
|
||||||
object.atType,
|
object.atType,
|
||||||
@ -122,14 +122,14 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
|
|||||||
value,
|
value,
|
||||||
specifiedType: const FullType(String),
|
specifiedType: const FullType(String),
|
||||||
) as String;
|
) as String;
|
||||||
result.atSchemalocation = valueDes;
|
result.atSchemaLocation = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'pizzaSize':
|
case r'pizzaSize':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
specifiedType: const FullType(num),
|
specifiedType: const FullType(num),
|
||||||
) as num;
|
) as num;
|
||||||
result.pizzasize = valueDes;
|
result.pizzaSize = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'toppings':
|
case r'toppings':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
@ -138,6 +138,13 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.toppings = valueDes;
|
result.toppings = valueDes;
|
||||||
break;
|
break;
|
||||||
|
case r'@baseType':
|
||||||
|
final valueDes = serializers.deserialize(
|
||||||
|
value,
|
||||||
|
specifiedType: const FullType(String),
|
||||||
|
) as String;
|
||||||
|
result.atBaseType = valueDes;
|
||||||
|
break;
|
||||||
case r'href':
|
case r'href':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
@ -152,13 +159,6 @@ class _$PizzaSpezialeSerializer implements PrimitiveSerializer<PizzaSpeziale> {
|
|||||||
) as String;
|
) as String;
|
||||||
result.id = valueDes;
|
result.id = valueDes;
|
||||||
break;
|
break;
|
||||||
case r'@baseType':
|
|
||||||
final valueDes = serializers.deserialize(
|
|
||||||
value,
|
|
||||||
specifiedType: const FullType(String),
|
|
||||||
) as String;
|
|
||||||
result.atBasetype = valueDes;
|
|
||||||
break;
|
|
||||||
case r'@type':
|
case r'@type':
|
||||||
final valueDes = serializers.deserialize(
|
final valueDes = serializers.deserialize(
|
||||||
value,
|
value,
|
||||||
|
@ -49,10 +49,10 @@ import 'package:openapi/openapi.dart';
|
|||||||
|
|
||||||
|
|
||||||
final api = Openapi().getAnotherFakeApi();
|
final api = Openapi().getAnotherFakeApi();
|
||||||
final ModelClient modelclient = ; // ModelClient | client model
|
final ModelClient modelClient = ; // ModelClient | client model
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = await api.call123testSpecialTags(modelclient);
|
final response = await api.call123testSpecialTags(modelClient);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print("Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n");
|
print("Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n");
|
||||||
|
@ -9,7 +9,7 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**username** | **String** | | [optional]
|
**username** | **String** | | [optional]
|
||||||
**singlereftype** | [**SingleRefType**](SingleRefType.md) | | [optional]
|
**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**classname** | **String** | |
|
**className** | **String** | |
|
||||||
**color** | **String** | | [optional] [default to 'red']
|
**color** | **String** | | [optional] [default to 'red']
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -13,7 +13,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
# **call123testSpecialTags**
|
# **call123testSpecialTags**
|
||||||
> ModelClient call123testSpecialTags(modelclient)
|
> ModelClient call123testSpecialTags(modelClient)
|
||||||
|
|
||||||
To test special tags
|
To test special tags
|
||||||
|
|
||||||
@ -24,10 +24,10 @@ To test special tags and operation ID starting with number
|
|||||||
import 'package:openapi/api.dart';
|
import 'package:openapi/api.dart';
|
||||||
|
|
||||||
final api = Openapi().getAnotherFakeApi();
|
final api = Openapi().getAnotherFakeApi();
|
||||||
final ModelClient modelclient = ; // ModelClient | client model
|
final ModelClient modelClient = ; // ModelClient | client model
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = api.call123testSpecialTags(modelclient);
|
final response = api.call123testSpecialTags(modelClient);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n');
|
print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n');
|
||||||
@ -38,7 +38,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**modelclient** | [**ModelClient**](ModelClient.md)| client model |
|
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**arrayarraynumber** | [**List<List<num>>**](List.md) | | [optional]
|
**arrayArrayNumber** | [**List<List<num>>**](List.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**arraynumber** | **List<num>** | | [optional]
|
**arrayNumber** | **List<num>** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,12 +8,12 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**smallcamel** | **String** | | [optional]
|
**smallCamel** | **String** | | [optional]
|
||||||
**capitalcamel** | **String** | | [optional]
|
**capitalCamel** | **String** | | [optional]
|
||||||
**smallSnake** | **String** | | [optional]
|
**smallSnake** | **String** | | [optional]
|
||||||
**capitalSnake** | **String** | | [optional]
|
**capitalSnake** | **String** | | [optional]
|
||||||
**scaEthFlowPoints** | **String** | | [optional]
|
**sCAETHFlowPoints** | **String** | | [optional]
|
||||||
**attName** | **String** | Name of the pet | [optional]
|
**ATT_NAME** | **String** | Name of the pet | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**classname** | **String** | |
|
**className** | **String** | |
|
||||||
**color** | **String** | | [optional] [default to 'red']
|
**color** | **String** | | [optional] [default to 'red']
|
||||||
**declawed** | **bool** | | [optional]
|
**declawed** | **bool** | | [optional]
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**type** | **String** | | [optional]
|
**type** | **String** | | [optional]
|
||||||
**nullableproperty** | **String** | | [optional]
|
**nullableProperty** | **String** | | [optional]
|
||||||
**otherproperty** | **String** | | [optional]
|
**otherProperty** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**classname** | **String** | |
|
**className** | **String** | |
|
||||||
**color** | **String** | | [optional] [default to 'red']
|
**color** | **String** | | [optional] [default to 'red']
|
||||||
**breed** | **String** | | [optional]
|
**breed** | **String** | | [optional]
|
||||||
|
|
||||||
|
@ -12,10 +12,10 @@ Name | Type | Description | Notes
|
|||||||
**enumStringRequired** | **String** | |
|
**enumStringRequired** | **String** | |
|
||||||
**enumInteger** | **int** | | [optional]
|
**enumInteger** | **int** | | [optional]
|
||||||
**enumNumber** | **double** | | [optional]
|
**enumNumber** | **double** | | [optional]
|
||||||
**outerenum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
**outerEnum** | [**OuterEnum**](OuterEnum.md) | | [optional]
|
||||||
**outerenuminteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional]
|
**outerEnumInteger** | [**OuterEnumInteger**](OuterEnumInteger.md) | | [optional]
|
||||||
**outerenumdefaultvalue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional]
|
**outerEnumDefaultValue** | [**OuterEnumDefaultValue**](OuterEnumDefaultValue.md) | | [optional]
|
||||||
**outerenumintegerdefaultvalue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional]
|
**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ No authorization required
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **fakeOuterCompositeSerialize**
|
# **fakeOuterCompositeSerialize**
|
||||||
> OuterComposite fakeOuterCompositeSerialize(outercomposite)
|
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -208,10 +208,10 @@ Test serialization of object with outer number type
|
|||||||
import 'package:openapi/api.dart';
|
import 'package:openapi/api.dart';
|
||||||
|
|
||||||
final api = Openapi().getFakeApi();
|
final api = Openapi().getFakeApi();
|
||||||
final OuterComposite outercomposite = ; // OuterComposite | Input composite as post body
|
final OuterComposite outerComposite = ; // OuterComposite | Input composite as post body
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = api.fakeOuterCompositeSerialize(outercomposite);
|
final response = api.fakeOuterCompositeSerialize(outerComposite);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling FakeApi->fakeOuterCompositeSerialize: $e\n');
|
print('Exception when calling FakeApi->fakeOuterCompositeSerialize: $e\n');
|
||||||
@ -222,7 +222,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**outercomposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -326,7 +326,7 @@ No authorization required
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **fakePropertyEnumIntegerSerialize**
|
# **fakePropertyEnumIntegerSerialize**
|
||||||
> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty)
|
> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -337,10 +337,10 @@ Test serialization of enum (int) properties with examples
|
|||||||
import 'package:openapi/api.dart';
|
import 'package:openapi/api.dart';
|
||||||
|
|
||||||
final api = Openapi().getFakeApi();
|
final api = Openapi().getFakeApi();
|
||||||
final OuterObjectWithEnumProperty outerobjectwithenumproperty = ; // OuterObjectWithEnumProperty | Input enum (int) as post body
|
final OuterObjectWithEnumProperty outerObjectWithEnumProperty = ; // OuterObjectWithEnumProperty | Input enum (int) as post body
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = api.fakePropertyEnumIntegerSerialize(outerobjectwithenumproperty);
|
final response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling FakeApi->fakePropertyEnumIntegerSerialize: $e\n');
|
print('Exception when calling FakeApi->fakePropertyEnumIntegerSerialize: $e\n');
|
||||||
@ -351,7 +351,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**outerobjectwithenumproperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body |
|
**outerObjectWithEnumProperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -453,7 +453,7 @@ No authorization required
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **testBodyWithFileSchema**
|
# **testBodyWithFileSchema**
|
||||||
> testBodyWithFileSchema(fileschematestclass)
|
> testBodyWithFileSchema(fileSchemaTestClass)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -464,10 +464,10 @@ For this test, the body for this request must reference a schema named `File`.
|
|||||||
import 'package:openapi/api.dart';
|
import 'package:openapi/api.dart';
|
||||||
|
|
||||||
final api = Openapi().getFakeApi();
|
final api = Openapi().getFakeApi();
|
||||||
final FileSchemaTestClass fileschematestclass = ; // FileSchemaTestClass |
|
final FileSchemaTestClass fileSchemaTestClass = ; // FileSchemaTestClass |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
api.testBodyWithFileSchema(fileschematestclass);
|
api.testBodyWithFileSchema(fileSchemaTestClass);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling FakeApi->testBodyWithFileSchema: $e\n');
|
print('Exception when calling FakeApi->testBodyWithFileSchema: $e\n');
|
||||||
}
|
}
|
||||||
@ -477,7 +477,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**fileschematestclass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -537,7 +537,7 @@ No authorization required
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **testClientModel**
|
# **testClientModel**
|
||||||
> ModelClient testClientModel(modelclient)
|
> ModelClient testClientModel(modelClient)
|
||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
@ -548,10 +548,10 @@ To test \"client\" model
|
|||||||
import 'package:openapi/api.dart';
|
import 'package:openapi/api.dart';
|
||||||
|
|
||||||
final api = Openapi().getFakeApi();
|
final api = Openapi().getFakeApi();
|
||||||
final ModelClient modelclient = ; // ModelClient | client model
|
final ModelClient modelClient = ; // ModelClient | client model
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = api.testClientModel(modelclient);
|
final response = api.testClientModel(modelClient);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling FakeApi->testClientModel: $e\n');
|
print('Exception when calling FakeApi->testClientModel: $e\n');
|
||||||
@ -562,7 +562,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**modelclient** | [**ModelClient**](ModelClient.md)| client model |
|
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -580,7 +580,7 @@ No authorization required
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **testEndpointParameters**
|
# **testEndpointParameters**
|
||||||
> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback)
|
> testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback)
|
||||||
|
|
||||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
@ -605,12 +605,12 @@ final double float = 3.4; // double | None
|
|||||||
final String string = string_example; // String | None
|
final String string = string_example; // String | None
|
||||||
final MultipartFile binary = BINARY_DATA_HERE; // MultipartFile | None
|
final MultipartFile binary = BINARY_DATA_HERE; // MultipartFile | None
|
||||||
final DateTime date = 2013-10-20; // DateTime | None
|
final DateTime date = 2013-10-20; // DateTime | None
|
||||||
final DateTime datetime = 2013-10-20T19:20:30+01:00; // DateTime | None
|
final DateTime dateTime = 2013-10-20T19:20:30+01:00; // DateTime | None
|
||||||
final String password = password_example; // String | None
|
final String password = password_example; // String | None
|
||||||
final String callback = callback_example; // String | None
|
final String callback = callback_example; // String | None
|
||||||
|
|
||||||
try {
|
try {
|
||||||
api.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, datetime, password, callback);
|
api.testEndpointParameters(number, double_, patternWithoutDelimiter, byte, integer, int32, int64, float, string, binary, date, dateTime, password, callback);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling FakeApi->testEndpointParameters: $e\n');
|
print('Exception when calling FakeApi->testEndpointParameters: $e\n');
|
||||||
}
|
}
|
||||||
@ -631,7 +631,7 @@ Name | Type | Description | Notes
|
|||||||
**string** | **String**| None | [optional]
|
**string** | **String**| None | [optional]
|
||||||
**binary** | **MultipartFile**| None | [optional]
|
**binary** | **MultipartFile**| None | [optional]
|
||||||
**date** | **DateTime**| None | [optional]
|
**date** | **DateTime**| None | [optional]
|
||||||
**datetime** | **DateTime**| None | [optional]
|
**dateTime** | **DateTime**| None | [optional]
|
||||||
**password** | **String**| None | [optional]
|
**password** | **String**| None | [optional]
|
||||||
**callback** | **String**| None | [optional]
|
**callback** | **String**| None | [optional]
|
||||||
|
|
||||||
@ -803,7 +803,7 @@ No authorization required
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **testInlineFreeformAdditionalProperties**
|
# **testInlineFreeformAdditionalProperties**
|
||||||
> testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest)
|
> testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest)
|
||||||
|
|
||||||
test inline free-form additionalProperties
|
test inline free-form additionalProperties
|
||||||
|
|
||||||
@ -814,10 +814,10 @@ test inline free-form additionalProperties
|
|||||||
import 'package:openapi/api.dart';
|
import 'package:openapi/api.dart';
|
||||||
|
|
||||||
final api = Openapi().getFakeApi();
|
final api = Openapi().getFakeApi();
|
||||||
final TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest = ; // TestInlineFreeformAdditionalPropertiesRequest | request body
|
final TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = ; // TestInlineFreeformAdditionalPropertiesRequest | request body
|
||||||
|
|
||||||
try {
|
try {
|
||||||
api.testInlineFreeformAdditionalProperties(testinlinefreeformadditionalpropertiesrequest);
|
api.testInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling FakeApi->testInlineFreeformAdditionalProperties: $e\n');
|
print('Exception when calling FakeApi->testInlineFreeformAdditionalProperties: $e\n');
|
||||||
}
|
}
|
||||||
@ -827,7 +827,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**testinlinefreeformadditionalpropertiesrequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body |
|
**testInlineFreeformAdditionalPropertiesRequest** | [**TestInlineFreeformAdditionalPropertiesRequest**](TestInlineFreeformAdditionalPropertiesRequest.md)| request body |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -889,7 +889,7 @@ No authorization required
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **testNullable**
|
# **testNullable**
|
||||||
> testNullable(childwithnullable)
|
> testNullable(childWithNullable)
|
||||||
|
|
||||||
test nullable parent property
|
test nullable parent property
|
||||||
|
|
||||||
@ -900,10 +900,10 @@ test nullable parent property
|
|||||||
import 'package:openapi/api.dart';
|
import 'package:openapi/api.dart';
|
||||||
|
|
||||||
final api = Openapi().getFakeApi();
|
final api = Openapi().getFakeApi();
|
||||||
final ChildWithNullable childwithnullable = ; // ChildWithNullable | request body
|
final ChildWithNullable childWithNullable = ; // ChildWithNullable | request body
|
||||||
|
|
||||||
try {
|
try {
|
||||||
api.testNullable(childwithnullable);
|
api.testNullable(childWithNullable);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling FakeApi->testNullable: $e\n');
|
print('Exception when calling FakeApi->testNullable: $e\n');
|
||||||
}
|
}
|
||||||
@ -913,7 +913,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**childwithnullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body |
|
**childWithNullable** | [**ChildWithNullable**](ChildWithNullable.md)| request body |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -931,7 +931,7 @@ No authorization required
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **testQueryParameterCollectionFormat**
|
# **testQueryParameterCollectionFormat**
|
||||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language)
|
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -947,11 +947,11 @@ final List<String> ioutil = ; // List<String> |
|
|||||||
final List<String> http = ; // List<String> |
|
final List<String> http = ; // List<String> |
|
||||||
final List<String> url = ; // List<String> |
|
final List<String> url = ; // List<String> |
|
||||||
final List<String> context = ; // List<String> |
|
final List<String> context = ; // List<String> |
|
||||||
final String allowempty = allowempty_example; // String |
|
final String allowEmpty = allowEmpty_example; // String |
|
||||||
final Map<String, String> language = ; // Map<String, String> |
|
final Map<String, String> language = ; // Map<String, String> |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowempty, language);
|
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling FakeApi->testQueryParameterCollectionFormat: $e\n');
|
print('Exception when calling FakeApi->testQueryParameterCollectionFormat: $e\n');
|
||||||
}
|
}
|
||||||
@ -966,7 +966,7 @@ Name | Type | Description | Notes
|
|||||||
**http** | [**List<String>**](String.md)| |
|
**http** | [**List<String>**](String.md)| |
|
||||||
**url** | [**List<String>**](String.md)| |
|
**url** | [**List<String>**](String.md)| |
|
||||||
**context** | [**List<String>**](String.md)| |
|
**context** | [**List<String>**](String.md)| |
|
||||||
**allowempty** | **String**| |
|
**allowEmpty** | **String**| |
|
||||||
**language** | [**Map<String, String>**](String.md)| | [optional]
|
**language** | [**Map<String, String>**](String.md)| | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
@ -8,8 +8,8 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**someid** | **num** | | [optional]
|
**someId** | **num** | | [optional]
|
||||||
**somemap** | **Map<String, num>** | | [optional]
|
**someMap** | **Map<String, num>** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
# **testClassname**
|
# **testClassname**
|
||||||
> ModelClient testClassname(modelclient)
|
> ModelClient testClassname(modelClient)
|
||||||
|
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
|
|
||||||
@ -28,10 +28,10 @@ import 'package:openapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key_query').apiKeyPrefix = 'Bearer';
|
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key_query').apiKeyPrefix = 'Bearer';
|
||||||
|
|
||||||
final api = Openapi().getFakeClassnameTags123Api();
|
final api = Openapi().getFakeClassnameTags123Api();
|
||||||
final ModelClient modelclient = ; // ModelClient | client model
|
final ModelClient modelClient = ; // ModelClient | client model
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = api.testClassname(modelclient);
|
final response = api.testClassname(modelClient);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling FakeClassnameTags123Api->testClassname: $e\n');
|
print('Exception when calling FakeClassnameTags123Api->testClassname: $e\n');
|
||||||
@ -42,7 +42,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**modelclient** | [**ModelClient**](ModelClient.md)| client model |
|
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ Name | Type | Description | Notes
|
|||||||
**byte** | **String** | |
|
**byte** | **String** | |
|
||||||
**binary** | [**MultipartFile**](MultipartFile.md) | | [optional]
|
**binary** | [**MultipartFile**](MultipartFile.md) | | [optional]
|
||||||
**date** | [**DateTime**](DateTime.md) | |
|
**date** | [**DateTime**](DateTime.md) | |
|
||||||
**datetime** | [**DateTime**](DateTime.md) | | [optional]
|
**dateTime** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**uuid** | **String** | | [optional]
|
**uuid** | **String** | | [optional]
|
||||||
**password** | **String** | |
|
**password** | **String** | |
|
||||||
**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional]
|
**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional]
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**nullablemessage** | **String** | | [optional]
|
**nullableMessage** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**uuid** | **String** | | [optional]
|
**uuid** | **String** | | [optional]
|
||||||
**datetime** | [**DateTime**](DateTime.md) | | [optional]
|
**dateTime** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**map** | [**Map<String, Animal>**](Animal.md) | | [optional]
|
**map** | [**Map<String, Animal>**](Animal.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**sourceuri** | **String** | Test capitalization | [optional]
|
**sourceURI** | **String** | Test capitalization | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**justnumber** | **num** | | [optional]
|
**justNumber** | **num** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**uuid** | **String** | | [optional]
|
**uuid** | **String** | | [optional]
|
||||||
**id** | **num** | | [optional]
|
**id** | **num** | | [optional]
|
||||||
**deprecatedref** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
**deprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional]
|
||||||
**bars** | **List<String>** | | [optional]
|
**bars** | **List<String>** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -9,9 +9,9 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **int** | | [optional]
|
**id** | **int** | | [optional]
|
||||||
**petid** | **int** | | [optional]
|
**petId** | **int** | | [optional]
|
||||||
**quantity** | **int** | | [optional]
|
**quantity** | **int** | | [optional]
|
||||||
**shipdate** | [**DateTime**](DateTime.md) | | [optional]
|
**shipDate** | [**DateTime**](DateTime.md) | | [optional]
|
||||||
**status** | **String** | Order Status | [optional]
|
**status** | **String** | Order Status | [optional]
|
||||||
**complete** | **bool** | | [optional] [default to false]
|
**complete** | **bool** | | [optional] [default to false]
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**type** | **String** | | [optional]
|
**type** | **String** | | [optional]
|
||||||
**nullableproperty** | **String** | | [optional]
|
**nullableProperty** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|||||||
**id** | **int** | | [optional]
|
**id** | **int** | | [optional]
|
||||||
**category** | [**Category**](Category.md) | | [optional]
|
**category** | [**Category**](Category.md) | | [optional]
|
||||||
**name** | **String** | |
|
**name** | **String** | |
|
||||||
**photourls** | **Set<String>** | |
|
**photoUrls** | **Set<String>** | |
|
||||||
**tags** | [**List<Tag>**](Tag.md) | | [optional]
|
**tags** | [**List<Tag>**](Tag.md) | | [optional]
|
||||||
**status** | **String** | pet status in the store | [optional]
|
**status** | **String** | pet status in the store | [optional]
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ void (empty response body)
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **deletePet**
|
# **deletePet**
|
||||||
> deletePet(petid, apiKey)
|
> deletePet(petId, apiKey)
|
||||||
|
|
||||||
Deletes a pet
|
Deletes a pet
|
||||||
|
|
||||||
@ -78,11 +78,11 @@ import 'package:openapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api = Openapi().getPetApi();
|
final api = Openapi().getPetApi();
|
||||||
final int petid = 789; // int | Pet id to delete
|
final int petId = 789; // int | Pet id to delete
|
||||||
final String apiKey = apiKey_example; // String |
|
final String apiKey = apiKey_example; // String |
|
||||||
|
|
||||||
try {
|
try {
|
||||||
api.deletePet(petid, apiKey);
|
api.deletePet(petId, apiKey);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling PetApi->deletePet: $e\n');
|
print('Exception when calling PetApi->deletePet: $e\n');
|
||||||
}
|
}
|
||||||
@ -92,7 +92,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**petid** | **int**| Pet id to delete |
|
**petId** | **int**| Pet id to delete |
|
||||||
**apiKey** | **String**| | [optional]
|
**apiKey** | **String**| | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
@ -201,7 +201,7 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **getPetById**
|
# **getPetById**
|
||||||
> Pet getPetById(petid)
|
> Pet getPetById(petId)
|
||||||
|
|
||||||
Find pet by ID
|
Find pet by ID
|
||||||
|
|
||||||
@ -216,10 +216,10 @@ import 'package:openapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
|
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
|
||||||
|
|
||||||
final api = Openapi().getPetApi();
|
final api = Openapi().getPetApi();
|
||||||
final int petid = 789; // int | ID of pet to return
|
final int petId = 789; // int | ID of pet to return
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = api.getPetById(petid);
|
final response = api.getPetById(petId);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling PetApi->getPetById: $e\n');
|
print('Exception when calling PetApi->getPetById: $e\n');
|
||||||
@ -230,7 +230,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**petid** | **int**| ID of pet to return |
|
**petId** | **int**| ID of pet to return |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
@ -292,7 +292,7 @@ void (empty response body)
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **updatePetWithForm**
|
# **updatePetWithForm**
|
||||||
> updatePetWithForm(petid, name, status)
|
> updatePetWithForm(petId, name, status)
|
||||||
|
|
||||||
Updates a pet in the store with form data
|
Updates a pet in the store with form data
|
||||||
|
|
||||||
@ -305,12 +305,12 @@ import 'package:openapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api = Openapi().getPetApi();
|
final api = Openapi().getPetApi();
|
||||||
final int petid = 789; // int | ID of pet that needs to be updated
|
final int petId = 789; // int | ID of pet that needs to be updated
|
||||||
final String name = name_example; // String | Updated name of the pet
|
final String name = name_example; // String | Updated name of the pet
|
||||||
final String status = status_example; // String | Updated status of the pet
|
final String status = status_example; // String | Updated status of the pet
|
||||||
|
|
||||||
try {
|
try {
|
||||||
api.updatePetWithForm(petid, name, status);
|
api.updatePetWithForm(petId, name, status);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling PetApi->updatePetWithForm: $e\n');
|
print('Exception when calling PetApi->updatePetWithForm: $e\n');
|
||||||
}
|
}
|
||||||
@ -320,7 +320,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**petid** | **int**| ID of pet that needs to be updated |
|
**petId** | **int**| ID of pet that needs to be updated |
|
||||||
**name** | **String**| Updated name of the pet | [optional]
|
**name** | **String**| Updated name of the pet | [optional]
|
||||||
**status** | **String**| Updated status of the pet | [optional]
|
**status** | **String**| Updated status of the pet | [optional]
|
||||||
|
|
||||||
@ -340,7 +340,7 @@ void (empty response body)
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **uploadFile**
|
# **uploadFile**
|
||||||
> ApiResponse uploadFile(petid, additionalmetadata, file)
|
> ApiResponse uploadFile(petId, additionalMetadata, file)
|
||||||
|
|
||||||
uploads an image
|
uploads an image
|
||||||
|
|
||||||
@ -353,12 +353,12 @@ import 'package:openapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api = Openapi().getPetApi();
|
final api = Openapi().getPetApi();
|
||||||
final int petid = 789; // int | ID of pet to update
|
final int petId = 789; // int | ID of pet to update
|
||||||
final String additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server
|
final String additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server
|
||||||
final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | file to upload
|
final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | file to upload
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = api.uploadFile(petid, additionalmetadata, file);
|
final response = api.uploadFile(petId, additionalMetadata, file);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling PetApi->uploadFile: $e\n');
|
print('Exception when calling PetApi->uploadFile: $e\n');
|
||||||
@ -369,8 +369,8 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**petid** | **int**| ID of pet to update |
|
**petId** | **int**| ID of pet to update |
|
||||||
**additionalmetadata** | **String**| Additional data to pass to server | [optional]
|
**additionalMetadata** | **String**| Additional data to pass to server | [optional]
|
||||||
**file** | **MultipartFile**| file to upload | [optional]
|
**file** | **MultipartFile**| file to upload | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
@ -389,7 +389,7 @@ Name | Type | Description | Notes
|
|||||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||||
|
|
||||||
# **uploadFileWithRequiredFile**
|
# **uploadFileWithRequiredFile**
|
||||||
> ApiResponse uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata)
|
> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata)
|
||||||
|
|
||||||
uploads an image (required)
|
uploads an image (required)
|
||||||
|
|
||||||
@ -402,12 +402,12 @@ import 'package:openapi/api.dart';
|
|||||||
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
|
//defaultApiClient.getAuthentication<OAuth>('petstore_auth').accessToken = 'YOUR_ACCESS_TOKEN';
|
||||||
|
|
||||||
final api = Openapi().getPetApi();
|
final api = Openapi().getPetApi();
|
||||||
final int petid = 789; // int | ID of pet to update
|
final int petId = 789; // int | ID of pet to update
|
||||||
final MultipartFile requiredfile = BINARY_DATA_HERE; // MultipartFile | file to upload
|
final MultipartFile requiredFile = BINARY_DATA_HERE; // MultipartFile | file to upload
|
||||||
final String additionalmetadata = additionalmetadata_example; // String | Additional data to pass to server
|
final String additionalMetadata = additionalMetadata_example; // String | Additional data to pass to server
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = api.uploadFileWithRequiredFile(petid, requiredfile, additionalmetadata);
|
final response = api.uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling PetApi->uploadFileWithRequiredFile: $e\n');
|
print('Exception when calling PetApi->uploadFileWithRequiredFile: $e\n');
|
||||||
@ -418,9 +418,9 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**petid** | **int**| ID of pet to update |
|
**petId** | **int**| ID of pet to update |
|
||||||
**requiredfile** | **MultipartFile**| file to upload |
|
**requiredFile** | **MultipartFile**| file to upload |
|
||||||
**additionalmetadata** | **String**| Additional data to pass to server | [optional]
|
**additionalMetadata** | **String**| Additional data to pass to server | [optional]
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket** | **int** | | [optional]
|
**dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket** | **int** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**someproperty** | **String** | | [optional]
|
**someProperty** | **String** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -10,12 +10,12 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**id** | **int** | | [optional]
|
**id** | **int** | | [optional]
|
||||||
**username** | **String** | | [optional]
|
**username** | **String** | | [optional]
|
||||||
**firstname** | **String** | | [optional]
|
**firstName** | **String** | | [optional]
|
||||||
**lastname** | **String** | | [optional]
|
**lastName** | **String** | | [optional]
|
||||||
**email** | **String** | | [optional]
|
**email** | **String** | | [optional]
|
||||||
**password** | **String** | | [optional]
|
**password** | **String** | | [optional]
|
||||||
**phone** | **String** | | [optional]
|
**phone** | **String** | | [optional]
|
||||||
**userstatus** | **int** | User Status | [optional]
|
**userStatus** | **int** | User Status | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ class AnotherFakeApi {
|
|||||||
/// To test special tags and operation ID starting with number
|
/// To test special tags and operation ID starting with number
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [modelclient] - client model
|
/// * [modelClient] - client model
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -32,7 +32,7 @@ class AnotherFakeApi {
|
|||||||
/// Returns a [Future] containing a [Response] with a [ModelClient] as data
|
/// Returns a [Future] containing a [Response] with a [ModelClient] as data
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<ModelClient>> call123testSpecialTags({
|
Future<Response<ModelClient>> call123testSpecialTags({
|
||||||
required ModelClient modelclient,
|
required ModelClient modelClient,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -57,7 +57,7 @@ class AnotherFakeApi {
|
|||||||
dynamic _bodyData;
|
dynamic _bodyData;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_bodyData=jsonEncode(modelclient);
|
_bodyData=jsonEncode(modelClient);
|
||||||
} catch(error, stackTrace) {
|
} catch(error, stackTrace) {
|
||||||
throw DioException(
|
throw DioException(
|
||||||
requestOptions: _options.compose(
|
requestOptions: _options.compose(
|
||||||
|
@ -340,7 +340,7 @@ _responseData = rawData == null ? null : deserialize<bool, bool>(rawData, 'bool'
|
|||||||
/// Test serialization of object with outer number type
|
/// Test serialization of object with outer number type
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [outercomposite] - Input composite as post body
|
/// * [outerComposite] - Input composite as post body
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -351,7 +351,7 @@ _responseData = rawData == null ? null : deserialize<bool, bool>(rawData, 'bool'
|
|||||||
/// Returns a [Future] containing a [Response] with a [OuterComposite] as data
|
/// Returns a [Future] containing a [Response] with a [OuterComposite] as data
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<OuterComposite>> fakeOuterCompositeSerialize({
|
Future<Response<OuterComposite>> fakeOuterCompositeSerialize({
|
||||||
OuterComposite? outercomposite,
|
OuterComposite? outerComposite,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -376,7 +376,7 @@ _responseData = rawData == null ? null : deserialize<bool, bool>(rawData, 'bool'
|
|||||||
dynamic _bodyData;
|
dynamic _bodyData;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_bodyData=jsonEncode(outercomposite);
|
_bodyData=jsonEncode(outerComposite);
|
||||||
} catch(error, stackTrace) {
|
} catch(error, stackTrace) {
|
||||||
throw DioException(
|
throw DioException(
|
||||||
requestOptions: _options.compose(
|
requestOptions: _options.compose(
|
||||||
@ -607,7 +607,7 @@ _responseData = rawData == null ? null : deserialize<String, String>(rawData, 'S
|
|||||||
/// Test serialization of enum (int) properties with examples
|
/// Test serialization of enum (int) properties with examples
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [outerobjectwithenumproperty] - Input enum (int) as post body
|
/// * [outerObjectWithEnumProperty] - Input enum (int) as post body
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -618,7 +618,7 @@ _responseData = rawData == null ? null : deserialize<String, String>(rawData, 'S
|
|||||||
/// Returns a [Future] containing a [Response] with a [OuterObjectWithEnumProperty] as data
|
/// Returns a [Future] containing a [Response] with a [OuterObjectWithEnumProperty] as data
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<OuterObjectWithEnumProperty>> fakePropertyEnumIntegerSerialize({
|
Future<Response<OuterObjectWithEnumProperty>> fakePropertyEnumIntegerSerialize({
|
||||||
required OuterObjectWithEnumProperty outerobjectwithenumproperty,
|
required OuterObjectWithEnumProperty outerObjectWithEnumProperty,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -643,7 +643,7 @@ _responseData = rawData == null ? null : deserialize<String, String>(rawData, 'S
|
|||||||
dynamic _bodyData;
|
dynamic _bodyData;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_bodyData=jsonEncode(outerobjectwithenumproperty);
|
_bodyData=jsonEncode(outerObjectWithEnumProperty);
|
||||||
} catch(error, stackTrace) {
|
} catch(error, stackTrace) {
|
||||||
throw DioException(
|
throw DioException(
|
||||||
requestOptions: _options.compose(
|
requestOptions: _options.compose(
|
||||||
@ -826,7 +826,7 @@ _bodyData=jsonEncode(body);
|
|||||||
/// For this test, the body for this request must reference a schema named `File`.
|
/// For this test, the body for this request must reference a schema named `File`.
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [fileschematestclass]
|
/// * [fileSchemaTestClass]
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -837,7 +837,7 @@ _bodyData=jsonEncode(body);
|
|||||||
/// Returns a [Future]
|
/// Returns a [Future]
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<void>> testBodyWithFileSchema({
|
Future<Response<void>> testBodyWithFileSchema({
|
||||||
required FileSchemaTestClass fileschematestclass,
|
required FileSchemaTestClass fileSchemaTestClass,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -862,7 +862,7 @@ _bodyData=jsonEncode(body);
|
|||||||
dynamic _bodyData;
|
dynamic _bodyData;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_bodyData=jsonEncode(fileschematestclass);
|
_bodyData=jsonEncode(fileSchemaTestClass);
|
||||||
} catch(error, stackTrace) {
|
} catch(error, stackTrace) {
|
||||||
throw DioException(
|
throw DioException(
|
||||||
requestOptions: _options.compose(
|
requestOptions: _options.compose(
|
||||||
@ -964,7 +964,7 @@ _bodyData=jsonEncode(user);
|
|||||||
/// To test \"client\" model
|
/// To test \"client\" model
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [modelclient] - client model
|
/// * [modelClient] - client model
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -975,7 +975,7 @@ _bodyData=jsonEncode(user);
|
|||||||
/// Returns a [Future] containing a [Response] with a [ModelClient] as data
|
/// Returns a [Future] containing a [Response] with a [ModelClient] as data
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<ModelClient>> testClientModel({
|
Future<Response<ModelClient>> testClientModel({
|
||||||
required ModelClient modelclient,
|
required ModelClient modelClient,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -1000,7 +1000,7 @@ _bodyData=jsonEncode(user);
|
|||||||
dynamic _bodyData;
|
dynamic _bodyData;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_bodyData=jsonEncode(modelclient);
|
_bodyData=jsonEncode(modelClient);
|
||||||
} catch(error, stackTrace) {
|
} catch(error, stackTrace) {
|
||||||
throw DioException(
|
throw DioException(
|
||||||
requestOptions: _options.compose(
|
requestOptions: _options.compose(
|
||||||
@ -1064,7 +1064,7 @@ _responseData = rawData == null ? null : deserialize<ModelClient, ModelClient>(r
|
|||||||
/// * [string] - None
|
/// * [string] - None
|
||||||
/// * [binary] - None
|
/// * [binary] - None
|
||||||
/// * [date] - None
|
/// * [date] - None
|
||||||
/// * [datetime] - None
|
/// * [dateTime] - None
|
||||||
/// * [password] - None
|
/// * [password] - None
|
||||||
/// * [callback] - None
|
/// * [callback] - None
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
@ -1088,7 +1088,7 @@ _responseData = rawData == null ? null : deserialize<ModelClient, ModelClient>(r
|
|||||||
String? string,
|
String? string,
|
||||||
MultipartFile? binary,
|
MultipartFile? binary,
|
||||||
DateTime? date,
|
DateTime? date,
|
||||||
DateTime? datetime,
|
DateTime? dateTime,
|
||||||
String? password,
|
String? password,
|
||||||
String? callback,
|
String? callback,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
@ -1381,7 +1381,7 @@ _bodyData=jsonEncode(requestBody);
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [testinlinefreeformadditionalpropertiesrequest] - request body
|
/// * [testInlineFreeformAdditionalPropertiesRequest] - request body
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -1392,7 +1392,7 @@ _bodyData=jsonEncode(requestBody);
|
|||||||
/// Returns a [Future]
|
/// Returns a [Future]
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<void>> testInlineFreeformAdditionalProperties({
|
Future<Response<void>> testInlineFreeformAdditionalProperties({
|
||||||
required TestInlineFreeformAdditionalPropertiesRequest testinlinefreeformadditionalpropertiesrequest,
|
required TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -1417,7 +1417,7 @@ _bodyData=jsonEncode(requestBody);
|
|||||||
dynamic _bodyData;
|
dynamic _bodyData;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest);
|
_bodyData=jsonEncode(testInlineFreeformAdditionalPropertiesRequest);
|
||||||
} catch(error, stackTrace) {
|
} catch(error, stackTrace) {
|
||||||
throw DioException(
|
throw DioException(
|
||||||
requestOptions: _options.compose(
|
requestOptions: _options.compose(
|
||||||
@ -1513,7 +1513,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest);
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [childwithnullable] - request body
|
/// * [childWithNullable] - request body
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -1524,7 +1524,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest);
|
|||||||
/// Returns a [Future]
|
/// Returns a [Future]
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<void>> testNullable({
|
Future<Response<void>> testNullable({
|
||||||
required ChildWithNullable childwithnullable,
|
required ChildWithNullable childWithNullable,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -1549,7 +1549,7 @@ _bodyData=jsonEncode(testinlinefreeformadditionalpropertiesrequest);
|
|||||||
dynamic _bodyData;
|
dynamic _bodyData;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_bodyData=jsonEncode(childwithnullable);
|
_bodyData=jsonEncode(childWithNullable);
|
||||||
} catch(error, stackTrace) {
|
} catch(error, stackTrace) {
|
||||||
throw DioException(
|
throw DioException(
|
||||||
requestOptions: _options.compose(
|
requestOptions: _options.compose(
|
||||||
@ -1583,7 +1583,7 @@ _bodyData=jsonEncode(childwithnullable);
|
|||||||
/// * [http]
|
/// * [http]
|
||||||
/// * [url]
|
/// * [url]
|
||||||
/// * [context]
|
/// * [context]
|
||||||
/// * [allowempty]
|
/// * [allowEmpty]
|
||||||
/// * [language]
|
/// * [language]
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
@ -1600,7 +1600,7 @@ _bodyData=jsonEncode(childwithnullable);
|
|||||||
required List<String> http,
|
required List<String> http,
|
||||||
required List<String> url,
|
required List<String> url,
|
||||||
required List<String> context,
|
required List<String> context,
|
||||||
required String allowempty,
|
required String allowEmpty,
|
||||||
Map<String, String>? language,
|
Map<String, String>? language,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
@ -1629,7 +1629,7 @@ _bodyData=jsonEncode(childwithnullable);
|
|||||||
r'url': url,
|
r'url': url,
|
||||||
r'context': context,
|
r'context': context,
|
||||||
if (language != null) r'language': language,
|
if (language != null) r'language': language,
|
||||||
r'allowEmpty': allowempty,
|
r'allowEmpty': allowEmpty,
|
||||||
};
|
};
|
||||||
|
|
||||||
final _response = await _dio.request<Object>(
|
final _response = await _dio.request<Object>(
|
||||||
|
@ -21,7 +21,7 @@ class FakeClassnameTags123Api {
|
|||||||
/// To test class name in snake case
|
/// To test class name in snake case
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [modelclient] - client model
|
/// * [modelClient] - client model
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -32,7 +32,7 @@ class FakeClassnameTags123Api {
|
|||||||
/// Returns a [Future] containing a [Response] with a [ModelClient] as data
|
/// Returns a [Future] containing a [Response] with a [ModelClient] as data
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<ModelClient>> testClassname({
|
Future<Response<ModelClient>> testClassname({
|
||||||
required ModelClient modelclient,
|
required ModelClient modelClient,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -64,7 +64,7 @@ class FakeClassnameTags123Api {
|
|||||||
dynamic _bodyData;
|
dynamic _bodyData;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_bodyData=jsonEncode(modelclient);
|
_bodyData=jsonEncode(modelClient);
|
||||||
} catch(error, stackTrace) {
|
} catch(error, stackTrace) {
|
||||||
throw DioException(
|
throw DioException(
|
||||||
requestOptions: _options.compose(
|
requestOptions: _options.compose(
|
||||||
|
@ -92,7 +92,7 @@ _bodyData=jsonEncode(pet);
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [petid] - Pet id to delete
|
/// * [petId] - Pet id to delete
|
||||||
/// * [apiKey]
|
/// * [apiKey]
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
@ -104,7 +104,7 @@ _bodyData=jsonEncode(pet);
|
|||||||
/// Returns a [Future]
|
/// Returns a [Future]
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<void>> deletePet({
|
Future<Response<void>> deletePet({
|
||||||
required int petid,
|
required int petId,
|
||||||
String? apiKey,
|
String? apiKey,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
@ -113,7 +113,7 @@ _bodyData=jsonEncode(pet);
|
|||||||
ProgressCallback? onSendProgress,
|
ProgressCallback? onSendProgress,
|
||||||
ProgressCallback? onReceiveProgress,
|
ProgressCallback? onReceiveProgress,
|
||||||
}) async {
|
}) async {
|
||||||
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString());
|
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString());
|
||||||
final _options = Options(
|
final _options = Options(
|
||||||
method: r'DELETE',
|
method: r'DELETE',
|
||||||
headers: <String, dynamic>{
|
headers: <String, dynamic>{
|
||||||
@ -310,7 +310,7 @@ _responseData = rawData == null ? null : deserialize<Set<Pet>, Pet>(rawData, 'Se
|
|||||||
/// Returns a single pet
|
/// Returns a single pet
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [petid] - ID of pet to return
|
/// * [petId] - ID of pet to return
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -321,7 +321,7 @@ _responseData = rawData == null ? null : deserialize<Set<Pet>, Pet>(rawData, 'Se
|
|||||||
/// Returns a [Future] containing a [Response] with a [Pet] as data
|
/// Returns a [Future] containing a [Response] with a [Pet] as data
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<Pet>> getPetById({
|
Future<Response<Pet>> getPetById({
|
||||||
required int petid,
|
required int petId,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -329,7 +329,7 @@ _responseData = rawData == null ? null : deserialize<Set<Pet>, Pet>(rawData, 'Se
|
|||||||
ProgressCallback? onSendProgress,
|
ProgressCallback? onSendProgress,
|
||||||
ProgressCallback? onReceiveProgress,
|
ProgressCallback? onReceiveProgress,
|
||||||
}) async {
|
}) async {
|
||||||
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString());
|
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString());
|
||||||
final _options = Options(
|
final _options = Options(
|
||||||
method: r'GET',
|
method: r'GET',
|
||||||
headers: <String, dynamic>{
|
headers: <String, dynamic>{
|
||||||
@ -458,7 +458,7 @@ _bodyData=jsonEncode(pet);
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [petid] - ID of pet that needs to be updated
|
/// * [petId] - ID of pet that needs to be updated
|
||||||
/// * [name] - Updated name of the pet
|
/// * [name] - Updated name of the pet
|
||||||
/// * [status] - Updated status of the pet
|
/// * [status] - Updated status of the pet
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
@ -471,7 +471,7 @@ _bodyData=jsonEncode(pet);
|
|||||||
/// Returns a [Future]
|
/// Returns a [Future]
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<void>> updatePetWithForm({
|
Future<Response<void>> updatePetWithForm({
|
||||||
required int petid,
|
required int petId,
|
||||||
String? name,
|
String? name,
|
||||||
String? status,
|
String? status,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
@ -481,7 +481,7 @@ _bodyData=jsonEncode(pet);
|
|||||||
ProgressCallback? onSendProgress,
|
ProgressCallback? onSendProgress,
|
||||||
ProgressCallback? onReceiveProgress,
|
ProgressCallback? onReceiveProgress,
|
||||||
}) async {
|
}) async {
|
||||||
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petid.toString());
|
final _path = r'/pet/{petId}'.replaceAll('{' r'petId' '}', petId.toString());
|
||||||
final _options = Options(
|
final _options = Options(
|
||||||
method: r'POST',
|
method: r'POST',
|
||||||
headers: <String, dynamic>{
|
headers: <String, dynamic>{
|
||||||
@ -532,8 +532,8 @@ _bodyData=jsonEncode(pet);
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [petid] - ID of pet to update
|
/// * [petId] - ID of pet to update
|
||||||
/// * [additionalmetadata] - Additional data to pass to server
|
/// * [additionalMetadata] - Additional data to pass to server
|
||||||
/// * [file] - file to upload
|
/// * [file] - file to upload
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
@ -545,8 +545,8 @@ _bodyData=jsonEncode(pet);
|
|||||||
/// Returns a [Future] containing a [Response] with a [ApiResponse] as data
|
/// Returns a [Future] containing a [Response] with a [ApiResponse] as data
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<ApiResponse>> uploadFile({
|
Future<Response<ApiResponse>> uploadFile({
|
||||||
required int petid,
|
required int petId,
|
||||||
String? additionalmetadata,
|
String? additionalMetadata,
|
||||||
MultipartFile? file,
|
MultipartFile? file,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
@ -555,7 +555,7 @@ _bodyData=jsonEncode(pet);
|
|||||||
ProgressCallback? onSendProgress,
|
ProgressCallback? onSendProgress,
|
||||||
ProgressCallback? onReceiveProgress,
|
ProgressCallback? onReceiveProgress,
|
||||||
}) async {
|
}) async {
|
||||||
final _path = r'/pet/{petId}/uploadImage'.replaceAll('{' r'petId' '}', petid.toString());
|
final _path = r'/pet/{petId}/uploadImage'.replaceAll('{' r'petId' '}', petId.toString());
|
||||||
final _options = Options(
|
final _options = Options(
|
||||||
method: r'POST',
|
method: r'POST',
|
||||||
headers: <String, dynamic>{
|
headers: <String, dynamic>{
|
||||||
@ -630,9 +630,9 @@ _responseData = rawData == null ? null : deserialize<ApiResponse, ApiResponse>(r
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// Parameters:
|
/// Parameters:
|
||||||
/// * [petid] - ID of pet to update
|
/// * [petId] - ID of pet to update
|
||||||
/// * [requiredfile] - file to upload
|
/// * [requiredFile] - file to upload
|
||||||
/// * [additionalmetadata] - Additional data to pass to server
|
/// * [additionalMetadata] - Additional data to pass to server
|
||||||
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
/// * [cancelToken] - A [CancelToken] that can be used to cancel the operation
|
||||||
/// * [headers] - Can be used to add additional headers to the request
|
/// * [headers] - Can be used to add additional headers to the request
|
||||||
/// * [extras] - Can be used to add flags to the request
|
/// * [extras] - Can be used to add flags to the request
|
||||||
@ -643,9 +643,9 @@ _responseData = rawData == null ? null : deserialize<ApiResponse, ApiResponse>(r
|
|||||||
/// Returns a [Future] containing a [Response] with a [ApiResponse] as data
|
/// Returns a [Future] containing a [Response] with a [ApiResponse] as data
|
||||||
/// Throws [DioException] if API call or serialization fails
|
/// Throws [DioException] if API call or serialization fails
|
||||||
Future<Response<ApiResponse>> uploadFileWithRequiredFile({
|
Future<Response<ApiResponse>> uploadFileWithRequiredFile({
|
||||||
required int petid,
|
required int petId,
|
||||||
required MultipartFile requiredfile,
|
required MultipartFile requiredFile,
|
||||||
String? additionalmetadata,
|
String? additionalMetadata,
|
||||||
CancelToken? cancelToken,
|
CancelToken? cancelToken,
|
||||||
Map<String, dynamic>? headers,
|
Map<String, dynamic>? headers,
|
||||||
Map<String, dynamic>? extra,
|
Map<String, dynamic>? extra,
|
||||||
@ -653,7 +653,7 @@ _responseData = rawData == null ? null : deserialize<ApiResponse, ApiResponse>(r
|
|||||||
ProgressCallback? onSendProgress,
|
ProgressCallback? onSendProgress,
|
||||||
ProgressCallback? onReceiveProgress,
|
ProgressCallback? onReceiveProgress,
|
||||||
}) async {
|
}) async {
|
||||||
final _path = r'/fake/{petId}/uploadImageWithRequiredFile'.replaceAll('{' r'petId' '}', petid.toString());
|
final _path = r'/fake/{petId}/uploadImageWithRequiredFile'.replaceAll('{' r'petId' '}', petId.toString());
|
||||||
final _options = Options(
|
final _options = Options(
|
||||||
method: r'POST',
|
method: r'POST',
|
||||||
headers: <String, dynamic>{
|
headers: <String, dynamic>{
|
||||||
|
@ -21,7 +21,7 @@ class AllOfWithSingleRef {
|
|||||||
|
|
||||||
this.username,
|
this.username,
|
||||||
|
|
||||||
this.singlereftype,
|
this.singleRefType,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -45,7 +45,7 @@ class AllOfWithSingleRef {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final SingleRefType? singlereftype;
|
final SingleRefType? singleRefType;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -54,12 +54,12 @@ class AllOfWithSingleRef {
|
|||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef &&
|
bool operator ==(Object other) => identical(this, other) || other is AllOfWithSingleRef &&
|
||||||
other.username == username &&
|
other.username == username &&
|
||||||
other.singlereftype == singlereftype;
|
other.singleRefType == singleRefType;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
username.hashCode +
|
username.hashCode +
|
||||||
singlereftype.hashCode;
|
singleRefType.hashCode;
|
||||||
|
|
||||||
factory AllOfWithSingleRef.fromJson(Map<String, dynamic> json) => _$AllOfWithSingleRefFromJson(json);
|
factory AllOfWithSingleRef.fromJson(Map<String, dynamic> json) => _$AllOfWithSingleRefFromJson(json);
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class Animal {
|
|||||||
/// Returns a new [Animal] instance.
|
/// Returns a new [Animal] instance.
|
||||||
Animal({
|
Animal({
|
||||||
|
|
||||||
required this.classname,
|
required this.className,
|
||||||
|
|
||||||
this.color = 'red',
|
this.color = 'red',
|
||||||
});
|
});
|
||||||
@ -31,7 +31,7 @@ class Animal {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String classname;
|
final String className;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -51,12 +51,12 @@ class Animal {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is Animal &&
|
bool operator ==(Object other) => identical(this, other) || other is Animal &&
|
||||||
other.classname == classname &&
|
other.className == className &&
|
||||||
other.color == color;
|
other.color == color;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
classname.hashCode +
|
className.hashCode +
|
||||||
color.hashCode;
|
color.hashCode;
|
||||||
|
|
||||||
factory Animal.fromJson(Map<String, dynamic> json) => _$AnimalFromJson(json);
|
factory Animal.fromJson(Map<String, dynamic> json) => _$AnimalFromJson(json);
|
||||||
|
@ -18,7 +18,7 @@ class ArrayOfArrayOfNumberOnly {
|
|||||||
/// Returns a new [ArrayOfArrayOfNumberOnly] instance.
|
/// Returns a new [ArrayOfArrayOfNumberOnly] instance.
|
||||||
ArrayOfArrayOfNumberOnly({
|
ArrayOfArrayOfNumberOnly({
|
||||||
|
|
||||||
this.arrayarraynumber,
|
this.arrayArrayNumber,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -29,7 +29,7 @@ class ArrayOfArrayOfNumberOnly {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final List<List<num>>? arrayarraynumber;
|
final List<List<num>>? arrayArrayNumber;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -37,11 +37,11 @@ class ArrayOfArrayOfNumberOnly {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly &&
|
bool operator ==(Object other) => identical(this, other) || other is ArrayOfArrayOfNumberOnly &&
|
||||||
other.arrayarraynumber == arrayarraynumber;
|
other.arrayArrayNumber == arrayArrayNumber;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
arrayarraynumber.hashCode;
|
arrayArrayNumber.hashCode;
|
||||||
|
|
||||||
factory ArrayOfArrayOfNumberOnly.fromJson(Map<String, dynamic> json) => _$ArrayOfArrayOfNumberOnlyFromJson(json);
|
factory ArrayOfArrayOfNumberOnly.fromJson(Map<String, dynamic> json) => _$ArrayOfArrayOfNumberOnlyFromJson(json);
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class ArrayOfNumberOnly {
|
|||||||
/// Returns a new [ArrayOfNumberOnly] instance.
|
/// Returns a new [ArrayOfNumberOnly] instance.
|
||||||
ArrayOfNumberOnly({
|
ArrayOfNumberOnly({
|
||||||
|
|
||||||
this.arraynumber,
|
this.arrayNumber,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -29,7 +29,7 @@ class ArrayOfNumberOnly {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final List<num>? arraynumber;
|
final List<num>? arrayNumber;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -37,11 +37,11 @@ class ArrayOfNumberOnly {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly &&
|
bool operator ==(Object other) => identical(this, other) || other is ArrayOfNumberOnly &&
|
||||||
other.arraynumber == arraynumber;
|
other.arrayNumber == arrayNumber;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
arraynumber.hashCode;
|
arrayNumber.hashCode;
|
||||||
|
|
||||||
factory ArrayOfNumberOnly.fromJson(Map<String, dynamic> json) => _$ArrayOfNumberOnlyFromJson(json);
|
factory ArrayOfNumberOnly.fromJson(Map<String, dynamic> json) => _$ArrayOfNumberOnlyFromJson(json);
|
||||||
|
|
||||||
|
@ -18,17 +18,17 @@ class Capitalization {
|
|||||||
/// Returns a new [Capitalization] instance.
|
/// Returns a new [Capitalization] instance.
|
||||||
Capitalization({
|
Capitalization({
|
||||||
|
|
||||||
this.smallcamel,
|
this.smallCamel,
|
||||||
|
|
||||||
this.capitalcamel,
|
this.capitalCamel,
|
||||||
|
|
||||||
this.smallSnake,
|
this.smallSnake,
|
||||||
|
|
||||||
this.capitalSnake,
|
this.capitalSnake,
|
||||||
|
|
||||||
this.scaEthFlowPoints,
|
this.sCAETHFlowPoints,
|
||||||
|
|
||||||
this.attName,
|
this.ATT_NAME,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -39,7 +39,7 @@ class Capitalization {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? smallcamel;
|
final String? smallCamel;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ class Capitalization {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? capitalcamel;
|
final String? capitalCamel;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -87,7 +87,7 @@ class Capitalization {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? scaEthFlowPoints;
|
final String? sCAETHFlowPoints;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ class Capitalization {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? attName;
|
final String? ATT_NAME;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -108,21 +108,21 @@ class Capitalization {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is Capitalization &&
|
bool operator ==(Object other) => identical(this, other) || other is Capitalization &&
|
||||||
other.smallcamel == smallcamel &&
|
other.smallCamel == smallCamel &&
|
||||||
other.capitalcamel == capitalcamel &&
|
other.capitalCamel == capitalCamel &&
|
||||||
other.smallSnake == smallSnake &&
|
other.smallSnake == smallSnake &&
|
||||||
other.capitalSnake == capitalSnake &&
|
other.capitalSnake == capitalSnake &&
|
||||||
other.scaEthFlowPoints == scaEthFlowPoints &&
|
other.sCAETHFlowPoints == sCAETHFlowPoints &&
|
||||||
other.attName == attName;
|
other.ATT_NAME == ATT_NAME;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
smallcamel.hashCode +
|
smallCamel.hashCode +
|
||||||
capitalcamel.hashCode +
|
capitalCamel.hashCode +
|
||||||
smallSnake.hashCode +
|
smallSnake.hashCode +
|
||||||
capitalSnake.hashCode +
|
capitalSnake.hashCode +
|
||||||
scaEthFlowPoints.hashCode +
|
sCAETHFlowPoints.hashCode +
|
||||||
attName.hashCode;
|
ATT_NAME.hashCode;
|
||||||
|
|
||||||
factory Capitalization.fromJson(Map<String, dynamic> json) => _$CapitalizationFromJson(json);
|
factory Capitalization.fromJson(Map<String, dynamic> json) => _$CapitalizationFromJson(json);
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ class Cat {
|
|||||||
/// Returns a new [Cat] instance.
|
/// Returns a new [Cat] instance.
|
||||||
Cat({
|
Cat({
|
||||||
|
|
||||||
required this.classname,
|
required this.className,
|
||||||
|
|
||||||
this.color = 'red',
|
this.color = 'red',
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ class Cat {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String classname;
|
final String className;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -68,13 +68,13 @@ class Cat {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is Cat &&
|
bool operator ==(Object other) => identical(this, other) || other is Cat &&
|
||||||
other.classname == classname &&
|
other.className == className &&
|
||||||
other.color == color &&
|
other.color == color &&
|
||||||
other.declawed == declawed;
|
other.declawed == declawed;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
classname.hashCode +
|
className.hashCode +
|
||||||
color.hashCode +
|
color.hashCode +
|
||||||
declawed.hashCode;
|
declawed.hashCode;
|
||||||
|
|
||||||
|
@ -23,9 +23,9 @@ class ChildWithNullable {
|
|||||||
|
|
||||||
this.type,
|
this.type,
|
||||||
|
|
||||||
this.nullableproperty,
|
this.nullableProperty,
|
||||||
|
|
||||||
this.otherproperty,
|
this.otherProperty,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -49,7 +49,7 @@ class ChildWithNullable {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? nullableproperty;
|
final String? nullableProperty;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ class ChildWithNullable {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? otherproperty;
|
final String? otherProperty;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -70,14 +70,14 @@ class ChildWithNullable {
|
|||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable &&
|
bool operator ==(Object other) => identical(this, other) || other is ChildWithNullable &&
|
||||||
other.type == type &&
|
other.type == type &&
|
||||||
other.nullableproperty == nullableproperty &&
|
other.nullableProperty == nullableProperty &&
|
||||||
other.otherproperty == otherproperty;
|
other.otherProperty == otherProperty;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
type.hashCode +
|
type.hashCode +
|
||||||
(nullableproperty == null ? 0 : nullableproperty.hashCode) +
|
(nullableProperty == null ? 0 : nullableProperty.hashCode) +
|
||||||
otherproperty.hashCode;
|
otherProperty.hashCode;
|
||||||
|
|
||||||
factory ChildWithNullable.fromJson(Map<String, dynamic> json) => _$ChildWithNullableFromJson(json);
|
factory ChildWithNullable.fromJson(Map<String, dynamic> json) => _$ChildWithNullableFromJson(json);
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ class ChildWithNullable {
|
|||||||
|
|
||||||
enum ChildWithNullableTypeEnum {
|
enum ChildWithNullableTypeEnum {
|
||||||
@JsonValue(r'ChildWithNullable')
|
@JsonValue(r'ChildWithNullable')
|
||||||
childwithnullable(r'ChildWithNullable'),
|
childWithNullable(r'ChildWithNullable'),
|
||||||
@JsonValue(r'unknown_default_open_api')
|
@JsonValue(r'unknown_default_open_api')
|
||||||
unknownDefaultOpenApi(r'unknown_default_open_api');
|
unknownDefaultOpenApi(r'unknown_default_open_api');
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ class Dog {
|
|||||||
/// Returns a new [Dog] instance.
|
/// Returns a new [Dog] instance.
|
||||||
Dog({
|
Dog({
|
||||||
|
|
||||||
required this.classname,
|
required this.className,
|
||||||
|
|
||||||
this.color = 'red',
|
this.color = 'red',
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ class Dog {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String classname;
|
final String className;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -68,13 +68,13 @@ class Dog {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is Dog &&
|
bool operator ==(Object other) => identical(this, other) || other is Dog &&
|
||||||
other.classname == classname &&
|
other.className == className &&
|
||||||
other.color == color &&
|
other.color == color &&
|
||||||
other.breed == breed;
|
other.breed == breed;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
classname.hashCode +
|
className.hashCode +
|
||||||
color.hashCode +
|
color.hashCode +
|
||||||
breed.hashCode;
|
breed.hashCode;
|
||||||
|
|
||||||
|
@ -30,13 +30,13 @@ class EnumTest {
|
|||||||
|
|
||||||
this.enumNumber,
|
this.enumNumber,
|
||||||
|
|
||||||
this.outerenum,
|
this.outerEnum,
|
||||||
|
|
||||||
this.outerenuminteger,
|
this.outerEnumInteger,
|
||||||
|
|
||||||
this.outerenumdefaultvalue,
|
this.outerEnumDefaultValue,
|
||||||
|
|
||||||
this.outerenumintegerdefaultvalue,
|
this.outerEnumIntegerDefaultValue,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -100,7 +100,7 @@ class EnumTest {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final OuterEnum? outerenum;
|
final OuterEnum? outerEnum;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -113,7 +113,7 @@ class EnumTest {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final OuterEnumInteger? outerenuminteger;
|
final OuterEnumInteger? outerEnumInteger;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -126,7 +126,7 @@ class EnumTest {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final OuterEnumDefaultValue? outerenumdefaultvalue;
|
final OuterEnumDefaultValue? outerEnumDefaultValue;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ class EnumTest {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final OuterEnumIntegerDefaultValue? outerenumintegerdefaultvalue;
|
final OuterEnumIntegerDefaultValue? outerEnumIntegerDefaultValue;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -151,10 +151,10 @@ class EnumTest {
|
|||||||
other.enumStringRequired == enumStringRequired &&
|
other.enumStringRequired == enumStringRequired &&
|
||||||
other.enumInteger == enumInteger &&
|
other.enumInteger == enumInteger &&
|
||||||
other.enumNumber == enumNumber &&
|
other.enumNumber == enumNumber &&
|
||||||
other.outerenum == outerenum &&
|
other.outerEnum == outerEnum &&
|
||||||
other.outerenuminteger == outerenuminteger &&
|
other.outerEnumInteger == outerEnumInteger &&
|
||||||
other.outerenumdefaultvalue == outerenumdefaultvalue &&
|
other.outerEnumDefaultValue == outerEnumDefaultValue &&
|
||||||
other.outerenumintegerdefaultvalue == outerenumintegerdefaultvalue;
|
other.outerEnumIntegerDefaultValue == outerEnumIntegerDefaultValue;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
@ -162,10 +162,10 @@ class EnumTest {
|
|||||||
enumStringRequired.hashCode +
|
enumStringRequired.hashCode +
|
||||||
enumInteger.hashCode +
|
enumInteger.hashCode +
|
||||||
enumNumber.hashCode +
|
enumNumber.hashCode +
|
||||||
(outerenum == null ? 0 : outerenum.hashCode) +
|
(outerEnum == null ? 0 : outerEnum.hashCode) +
|
||||||
outerenuminteger.hashCode +
|
outerEnumInteger.hashCode +
|
||||||
outerenumdefaultvalue.hashCode +
|
outerEnumDefaultValue.hashCode +
|
||||||
outerenumintegerdefaultvalue.hashCode;
|
outerEnumIntegerDefaultValue.hashCode;
|
||||||
|
|
||||||
factory EnumTest.fromJson(Map<String, dynamic> json) => _$EnumTestFromJson(json);
|
factory EnumTest.fromJson(Map<String, dynamic> json) => _$EnumTestFromJson(json);
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ class EnumTest {
|
|||||||
|
|
||||||
enum EnumTestEnumStringEnum {
|
enum EnumTestEnumStringEnum {
|
||||||
@JsonValue(r'UPPER')
|
@JsonValue(r'UPPER')
|
||||||
upper(r'UPPER'),
|
UPPER(r'UPPER'),
|
||||||
@JsonValue(r'lower')
|
@JsonValue(r'lower')
|
||||||
lower(r'lower'),
|
lower(r'lower'),
|
||||||
@JsonValue(r'')
|
@JsonValue(r'')
|
||||||
@ -201,7 +201,7 @@ String toString() => value;
|
|||||||
|
|
||||||
enum EnumTestEnumStringRequiredEnum {
|
enum EnumTestEnumStringRequiredEnum {
|
||||||
@JsonValue(r'UPPER')
|
@JsonValue(r'UPPER')
|
||||||
upper(r'UPPER'),
|
UPPER(r'UPPER'),
|
||||||
@JsonValue(r'lower')
|
@JsonValue(r'lower')
|
||||||
lower(r'lower'),
|
lower(r'lower'),
|
||||||
@JsonValue(r'')
|
@JsonValue(r'')
|
||||||
@ -239,9 +239,9 @@ String toString() => value;
|
|||||||
|
|
||||||
enum EnumTestEnumNumberEnum {
|
enum EnumTestEnumNumberEnum {
|
||||||
@JsonValue('1.1')
|
@JsonValue('1.1')
|
||||||
number1period1(''1.1''),
|
number1Period1(''1.1''),
|
||||||
@JsonValue('-1.2')
|
@JsonValue('-1.2')
|
||||||
numberNegative1period2(''-1.2''),
|
numberNegative1Period2(''-1.2''),
|
||||||
@JsonValue('11184809')
|
@JsonValue('11184809')
|
||||||
unknownDefaultOpenApi(''11184809'');
|
unknownDefaultOpenApi(''11184809'');
|
||||||
|
|
||||||
|
@ -18,9 +18,9 @@ class FakeBigDecimalMap200Response {
|
|||||||
/// Returns a new [FakeBigDecimalMap200Response] instance.
|
/// Returns a new [FakeBigDecimalMap200Response] instance.
|
||||||
FakeBigDecimalMap200Response({
|
FakeBigDecimalMap200Response({
|
||||||
|
|
||||||
this.someid,
|
this.someId,
|
||||||
|
|
||||||
this.somemap,
|
this.someMap,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -31,7 +31,7 @@ class FakeBigDecimalMap200Response {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final num? someid;
|
final num? someId;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -43,7 +43,7 @@ class FakeBigDecimalMap200Response {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final Map<String, num>? somemap;
|
final Map<String, num>? someMap;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -51,13 +51,13 @@ class FakeBigDecimalMap200Response {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is FakeBigDecimalMap200Response &&
|
bool operator ==(Object other) => identical(this, other) || other is FakeBigDecimalMap200Response &&
|
||||||
other.someid == someid &&
|
other.someId == someId &&
|
||||||
other.somemap == somemap;
|
other.someMap == someMap;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
someid.hashCode +
|
someId.hashCode +
|
||||||
somemap.hashCode;
|
someMap.hashCode;
|
||||||
|
|
||||||
factory FakeBigDecimalMap200Response.fromJson(Map<String, dynamic> json) => _$FakeBigDecimalMap200ResponseFromJson(json);
|
factory FakeBigDecimalMap200Response.fromJson(Map<String, dynamic> json) => _$FakeBigDecimalMap200ResponseFromJson(json);
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ class FormatTest {
|
|||||||
|
|
||||||
required this.date,
|
required this.date,
|
||||||
|
|
||||||
this.datetime,
|
this.dateTime,
|
||||||
|
|
||||||
this.uuid,
|
this.uuid,
|
||||||
|
|
||||||
@ -197,7 +197,7 @@ class FormatTest {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final DateTime? datetime;
|
final DateTime? dateTime;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -266,7 +266,7 @@ class FormatTest {
|
|||||||
other.byte == byte &&
|
other.byte == byte &&
|
||||||
other.binary == binary &&
|
other.binary == binary &&
|
||||||
other.date == date &&
|
other.date == date &&
|
||||||
other.datetime == datetime &&
|
other.dateTime == dateTime &&
|
||||||
other.uuid == uuid &&
|
other.uuid == uuid &&
|
||||||
other.password == password &&
|
other.password == password &&
|
||||||
other.patternWithDigits == patternWithDigits &&
|
other.patternWithDigits == patternWithDigits &&
|
||||||
@ -285,7 +285,7 @@ class FormatTest {
|
|||||||
byte.hashCode +
|
byte.hashCode +
|
||||||
binary.hashCode +
|
binary.hashCode +
|
||||||
date.hashCode +
|
date.hashCode +
|
||||||
datetime.hashCode +
|
dateTime.hashCode +
|
||||||
uuid.hashCode +
|
uuid.hashCode +
|
||||||
password.hashCode +
|
password.hashCode +
|
||||||
patternWithDigits.hashCode +
|
patternWithDigits.hashCode +
|
||||||
|
@ -18,7 +18,7 @@ class HealthCheckResult {
|
|||||||
/// Returns a new [HealthCheckResult] instance.
|
/// Returns a new [HealthCheckResult] instance.
|
||||||
HealthCheckResult({
|
HealthCheckResult({
|
||||||
|
|
||||||
this.nullablemessage,
|
this.nullableMessage,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -29,7 +29,7 @@ class HealthCheckResult {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? nullablemessage;
|
final String? nullableMessage;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -37,11 +37,11 @@ class HealthCheckResult {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is HealthCheckResult &&
|
bool operator ==(Object other) => identical(this, other) || other is HealthCheckResult &&
|
||||||
other.nullablemessage == nullablemessage;
|
other.nullableMessage == nullableMessage;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
(nullablemessage == null ? 0 : nullablemessage.hashCode);
|
(nullableMessage == null ? 0 : nullableMessage.hashCode);
|
||||||
|
|
||||||
factory HealthCheckResult.fromJson(Map<String, dynamic> json) => _$HealthCheckResultFromJson(json);
|
factory HealthCheckResult.fromJson(Map<String, dynamic> json) => _$HealthCheckResultFromJson(json);
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ class MapTest {
|
|||||||
|
|
||||||
enum MapTestMapOfEnumStringEnum {
|
enum MapTestMapOfEnumStringEnum {
|
||||||
@JsonValue(r'UPPER')
|
@JsonValue(r'UPPER')
|
||||||
upper(r'UPPER'),
|
UPPER(r'UPPER'),
|
||||||
@JsonValue(r'lower')
|
@JsonValue(r'lower')
|
||||||
lower(r'lower'),
|
lower(r'lower'),
|
||||||
@JsonValue(r'unknown_default_open_api')
|
@JsonValue(r'unknown_default_open_api')
|
||||||
|
@ -21,7 +21,7 @@ class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
|
|
||||||
this.uuid,
|
this.uuid,
|
||||||
|
|
||||||
this.datetime,
|
this.dateTime,
|
||||||
|
|
||||||
this.map,
|
this.map,
|
||||||
});
|
});
|
||||||
@ -46,7 +46,7 @@ class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final DateTime? datetime;
|
final DateTime? dateTime;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -67,13 +67,13 @@ class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is MixedPropertiesAndAdditionalPropertiesClass &&
|
bool operator ==(Object other) => identical(this, other) || other is MixedPropertiesAndAdditionalPropertiesClass &&
|
||||||
other.uuid == uuid &&
|
other.uuid == uuid &&
|
||||||
other.datetime == datetime &&
|
other.dateTime == dateTime &&
|
||||||
other.map == map;
|
other.map == map;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
uuid.hashCode +
|
uuid.hashCode +
|
||||||
datetime.hashCode +
|
dateTime.hashCode +
|
||||||
map.hashCode;
|
map.hashCode;
|
||||||
|
|
||||||
factory MixedPropertiesAndAdditionalPropertiesClass.fromJson(Map<String, dynamic> json) => _$MixedPropertiesAndAdditionalPropertiesClassFromJson(json);
|
factory MixedPropertiesAndAdditionalPropertiesClass.fromJson(Map<String, dynamic> json) => _$MixedPropertiesAndAdditionalPropertiesClassFromJson(json);
|
||||||
|
@ -12,7 +12,7 @@ enum ModelEnumClass {
|
|||||||
@JsonValue(r'-efg')
|
@JsonValue(r'-efg')
|
||||||
efg(r'-efg'),
|
efg(r'-efg'),
|
||||||
@JsonValue(r'(xyz)')
|
@JsonValue(r'(xyz)')
|
||||||
leftParenthesisXyzrightParenthesis(r'(xyz)'),
|
leftParenthesisXyzRightParenthesis(r'(xyz)'),
|
||||||
@JsonValue(r'unknown_default_open_api')
|
@JsonValue(r'unknown_default_open_api')
|
||||||
unknownDefaultOpenApi(r'unknown_default_open_api');
|
unknownDefaultOpenApi(r'unknown_default_open_api');
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class ModelFile {
|
|||||||
/// Returns a new [ModelFile] instance.
|
/// Returns a new [ModelFile] instance.
|
||||||
ModelFile({
|
ModelFile({
|
||||||
|
|
||||||
this.sourceuri,
|
this.sourceURI,
|
||||||
});
|
});
|
||||||
|
|
||||||
/// Test capitalization
|
/// Test capitalization
|
||||||
@ -30,7 +30,7 @@ class ModelFile {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? sourceuri;
|
final String? sourceURI;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -38,11 +38,11 @@ class ModelFile {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ModelFile &&
|
bool operator ==(Object other) => identical(this, other) || other is ModelFile &&
|
||||||
other.sourceuri == sourceuri;
|
other.sourceURI == sourceURI;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
sourceuri.hashCode;
|
sourceURI.hashCode;
|
||||||
|
|
||||||
factory ModelFile.fromJson(Map<String, dynamic> json) => _$ModelFileFromJson(json);
|
factory ModelFile.fromJson(Map<String, dynamic> json) => _$ModelFileFromJson(json);
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class NumberOnly {
|
|||||||
/// Returns a new [NumberOnly] instance.
|
/// Returns a new [NumberOnly] instance.
|
||||||
NumberOnly({
|
NumberOnly({
|
||||||
|
|
||||||
this.justnumber,
|
this.justNumber,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -29,7 +29,7 @@ class NumberOnly {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final num? justnumber;
|
final num? justNumber;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -37,11 +37,11 @@ class NumberOnly {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is NumberOnly &&
|
bool operator ==(Object other) => identical(this, other) || other is NumberOnly &&
|
||||||
other.justnumber == justnumber;
|
other.justNumber == justNumber;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
justnumber.hashCode;
|
justNumber.hashCode;
|
||||||
|
|
||||||
factory NumberOnly.fromJson(Map<String, dynamic> json) => _$NumberOnlyFromJson(json);
|
factory NumberOnly.fromJson(Map<String, dynamic> json) => _$NumberOnlyFromJson(json);
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class ObjectWithDeprecatedFields {
|
|||||||
|
|
||||||
this.id,
|
this.id,
|
||||||
|
|
||||||
this.deprecatedref,
|
this.deprecatedRef,
|
||||||
|
|
||||||
this.bars,
|
this.bars,
|
||||||
});
|
});
|
||||||
@ -53,7 +53,7 @@ class ObjectWithDeprecatedFields {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Deprecated('deprecatedref has been deprecated')
|
@Deprecated('deprecatedRef has been deprecated')
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
|
|
||||||
name: r'deprecatedRef',
|
name: r'deprecatedRef',
|
||||||
@ -62,7 +62,7 @@ class ObjectWithDeprecatedFields {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final DeprecatedObject? deprecatedref;
|
final DeprecatedObject? deprecatedRef;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -85,14 +85,14 @@ class ObjectWithDeprecatedFields {
|
|||||||
bool operator ==(Object other) => identical(this, other) || other is ObjectWithDeprecatedFields &&
|
bool operator ==(Object other) => identical(this, other) || other is ObjectWithDeprecatedFields &&
|
||||||
other.uuid == uuid &&
|
other.uuid == uuid &&
|
||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.deprecatedref == deprecatedref &&
|
other.deprecatedRef == deprecatedRef &&
|
||||||
other.bars == bars;
|
other.bars == bars;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
uuid.hashCode +
|
uuid.hashCode +
|
||||||
id.hashCode +
|
id.hashCode +
|
||||||
deprecatedref.hashCode +
|
deprecatedRef.hashCode +
|
||||||
bars.hashCode;
|
bars.hashCode;
|
||||||
|
|
||||||
factory ObjectWithDeprecatedFields.fromJson(Map<String, dynamic> json) => _$ObjectWithDeprecatedFieldsFromJson(json);
|
factory ObjectWithDeprecatedFields.fromJson(Map<String, dynamic> json) => _$ObjectWithDeprecatedFieldsFromJson(json);
|
||||||
|
@ -20,11 +20,11 @@ class Order {
|
|||||||
|
|
||||||
this.id,
|
this.id,
|
||||||
|
|
||||||
this.petid,
|
this.petId,
|
||||||
|
|
||||||
this.quantity,
|
this.quantity,
|
||||||
|
|
||||||
this.shipdate,
|
this.shipDate,
|
||||||
|
|
||||||
this.status,
|
this.status,
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ class Order {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final int? petid;
|
final int? petId;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ class Order {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final DateTime? shipdate;
|
final DateTime? shipDate;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -110,18 +110,18 @@ class Order {
|
|||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is Order &&
|
bool operator ==(Object other) => identical(this, other) || other is Order &&
|
||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.petid == petid &&
|
other.petId == petId &&
|
||||||
other.quantity == quantity &&
|
other.quantity == quantity &&
|
||||||
other.shipdate == shipdate &&
|
other.shipDate == shipDate &&
|
||||||
other.status == status &&
|
other.status == status &&
|
||||||
other.complete == complete;
|
other.complete == complete;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
id.hashCode +
|
id.hashCode +
|
||||||
petid.hashCode +
|
petId.hashCode +
|
||||||
quantity.hashCode +
|
quantity.hashCode +
|
||||||
shipdate.hashCode +
|
shipDate.hashCode +
|
||||||
status.hashCode +
|
status.hashCode +
|
||||||
complete.hashCode;
|
complete.hashCode;
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ class ParentWithNullable {
|
|||||||
|
|
||||||
this.type,
|
this.type,
|
||||||
|
|
||||||
this.nullableproperty,
|
this.nullableProperty,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -44,7 +44,7 @@ class ParentWithNullable {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? nullableproperty;
|
final String? nullableProperty;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -53,12 +53,12 @@ class ParentWithNullable {
|
|||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is ParentWithNullable &&
|
bool operator ==(Object other) => identical(this, other) || other is ParentWithNullable &&
|
||||||
other.type == type &&
|
other.type == type &&
|
||||||
other.nullableproperty == nullableproperty;
|
other.nullableProperty == nullableProperty;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
type.hashCode +
|
type.hashCode +
|
||||||
(nullableproperty == null ? 0 : nullableproperty.hashCode);
|
(nullableProperty == null ? 0 : nullableProperty.hashCode);
|
||||||
|
|
||||||
factory ParentWithNullable.fromJson(Map<String, dynamic> json) => _$ParentWithNullableFromJson(json);
|
factory ParentWithNullable.fromJson(Map<String, dynamic> json) => _$ParentWithNullableFromJson(json);
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ class ParentWithNullable {
|
|||||||
|
|
||||||
enum ParentWithNullableTypeEnum {
|
enum ParentWithNullableTypeEnum {
|
||||||
@JsonValue(r'ChildWithNullable')
|
@JsonValue(r'ChildWithNullable')
|
||||||
childwithnullable(r'ChildWithNullable'),
|
childWithNullable(r'ChildWithNullable'),
|
||||||
@JsonValue(r'unknown_default_open_api')
|
@JsonValue(r'unknown_default_open_api')
|
||||||
unknownDefaultOpenApi(r'unknown_default_open_api');
|
unknownDefaultOpenApi(r'unknown_default_open_api');
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ class Pet {
|
|||||||
|
|
||||||
required this.name,
|
required this.name,
|
||||||
|
|
||||||
required this.photourls,
|
required this.photoUrls,
|
||||||
|
|
||||||
this.tags,
|
this.tags,
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ class Pet {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final Set<String> photourls;
|
final Set<String> photoUrls;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ class Pet {
|
|||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.category == category &&
|
other.category == category &&
|
||||||
other.name == name &&
|
other.name == name &&
|
||||||
other.photourls == photourls &&
|
other.photoUrls == photoUrls &&
|
||||||
other.tags == tags &&
|
other.tags == tags &&
|
||||||
other.status == status;
|
other.status == status;
|
||||||
|
|
||||||
@ -123,7 +123,7 @@ class Pet {
|
|||||||
id.hashCode +
|
id.hashCode +
|
||||||
category.hashCode +
|
category.hashCode +
|
||||||
name.hashCode +
|
name.hashCode +
|
||||||
photourls.hashCode +
|
photoUrls.hashCode +
|
||||||
tags.hashCode +
|
tags.hashCode +
|
||||||
status.hashCode;
|
status.hashCode;
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class SpecialModelName {
|
|||||||
/// Returns a new [SpecialModelName] instance.
|
/// Returns a new [SpecialModelName] instance.
|
||||||
SpecialModelName({
|
SpecialModelName({
|
||||||
|
|
||||||
this.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket,
|
this.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -29,7 +29,7 @@ class SpecialModelName {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final int? dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket;
|
final int? dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -37,11 +37,11 @@ class SpecialModelName {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is SpecialModelName &&
|
bool operator ==(Object other) => identical(this, other) || other is SpecialModelName &&
|
||||||
other.dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket == dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket;
|
other.dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket == dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
dollarSpecialleftSquareBracketPropertyperiodNamerightSquareBracket.hashCode;
|
dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket.hashCode;
|
||||||
|
|
||||||
factory SpecialModelName.fromJson(Map<String, dynamic> json) => _$SpecialModelNameFromJson(json);
|
factory SpecialModelName.fromJson(Map<String, dynamic> json) => _$SpecialModelNameFromJson(json);
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class TestInlineFreeformAdditionalPropertiesRequest {
|
|||||||
/// Returns a new [TestInlineFreeformAdditionalPropertiesRequest] instance.
|
/// Returns a new [TestInlineFreeformAdditionalPropertiesRequest] instance.
|
||||||
TestInlineFreeformAdditionalPropertiesRequest({
|
TestInlineFreeformAdditionalPropertiesRequest({
|
||||||
|
|
||||||
this.someproperty,
|
this.someProperty,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -29,7 +29,7 @@ class TestInlineFreeformAdditionalPropertiesRequest {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? someproperty;
|
final String? someProperty;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -37,11 +37,11 @@ class TestInlineFreeformAdditionalPropertiesRequest {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is TestInlineFreeformAdditionalPropertiesRequest &&
|
bool operator ==(Object other) => identical(this, other) || other is TestInlineFreeformAdditionalPropertiesRequest &&
|
||||||
other.someproperty == someproperty;
|
other.someProperty == someProperty;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
someproperty.hashCode;
|
someProperty.hashCode;
|
||||||
|
|
||||||
factory TestInlineFreeformAdditionalPropertiesRequest.fromJson(Map<String, dynamic> json) => _$TestInlineFreeformAdditionalPropertiesRequestFromJson(json);
|
factory TestInlineFreeformAdditionalPropertiesRequest.fromJson(Map<String, dynamic> json) => _$TestInlineFreeformAdditionalPropertiesRequestFromJson(json);
|
||||||
|
|
||||||
|
@ -22,9 +22,9 @@ class User {
|
|||||||
|
|
||||||
this.username,
|
this.username,
|
||||||
|
|
||||||
this.firstname,
|
this.firstName,
|
||||||
|
|
||||||
this.lastname,
|
this.lastName,
|
||||||
|
|
||||||
this.email,
|
this.email,
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ class User {
|
|||||||
|
|
||||||
this.phone,
|
this.phone,
|
||||||
|
|
||||||
this.userstatus,
|
this.userStatus,
|
||||||
});
|
});
|
||||||
|
|
||||||
@JsonKey(
|
@JsonKey(
|
||||||
@ -67,7 +67,7 @@ class User {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? firstname;
|
final String? firstName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ class User {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final String? lastname;
|
final String? lastName;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ class User {
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
final int? userstatus;
|
final int? userStatus;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -138,23 +138,23 @@ class User {
|
|||||||
bool operator ==(Object other) => identical(this, other) || other is User &&
|
bool operator ==(Object other) => identical(this, other) || other is User &&
|
||||||
other.id == id &&
|
other.id == id &&
|
||||||
other.username == username &&
|
other.username == username &&
|
||||||
other.firstname == firstname &&
|
other.firstName == firstName &&
|
||||||
other.lastname == lastname &&
|
other.lastName == lastName &&
|
||||||
other.email == email &&
|
other.email == email &&
|
||||||
other.password == password &&
|
other.password == password &&
|
||||||
other.phone == phone &&
|
other.phone == phone &&
|
||||||
other.userstatus == userstatus;
|
other.userStatus == userStatus;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
id.hashCode +
|
id.hashCode +
|
||||||
username.hashCode +
|
username.hashCode +
|
||||||
firstname.hashCode +
|
firstName.hashCode +
|
||||||
lastname.hashCode +
|
lastName.hashCode +
|
||||||
email.hashCode +
|
email.hashCode +
|
||||||
password.hashCode +
|
password.hashCode +
|
||||||
phone.hashCode +
|
phone.hashCode +
|
||||||
userstatus.hashCode;
|
userStatus.hashCode;
|
||||||
|
|
||||||
factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
|
factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
|
||||||
|
|
||||||
|
@ -48,10 +48,10 @@ import 'package:openapi/openapi.dart';
|
|||||||
|
|
||||||
|
|
||||||
final api = Openapi().getAnotherFakeApi();
|
final api = Openapi().getAnotherFakeApi();
|
||||||
final ModelClient modelclient = ; // ModelClient | client model
|
final ModelClient modelClient = ; // ModelClient | client model
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = await api.call123testSpecialTags(modelclient);
|
final response = await api.call123testSpecialTags(modelClient);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print("Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n");
|
print("Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n");
|
||||||
|
@ -9,7 +9,7 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**username** | **String** | | [optional]
|
**username** | **String** | | [optional]
|
||||||
**singlereftype** | [**SingleRefType**](SingleRefType.md) | | [optional]
|
**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**classname** | **String** | |
|
**className** | **String** | |
|
||||||
**color** | **String** | | [optional] [default to 'red']
|
**color** | **String** | | [optional] [default to 'red']
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
@ -13,7 +13,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
|
|
||||||
# **call123testSpecialTags**
|
# **call123testSpecialTags**
|
||||||
> ModelClient call123testSpecialTags(modelclient)
|
> ModelClient call123testSpecialTags(modelClient)
|
||||||
|
|
||||||
To test special tags
|
To test special tags
|
||||||
|
|
||||||
@ -24,10 +24,10 @@ To test special tags and operation ID starting with number
|
|||||||
import 'package:openapi/api.dart';
|
import 'package:openapi/api.dart';
|
||||||
|
|
||||||
final api = Openapi().getAnotherFakeApi();
|
final api = Openapi().getAnotherFakeApi();
|
||||||
final ModelClient modelclient = ; // ModelClient | client model
|
final ModelClient modelClient = ; // ModelClient | client model
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final response = api.call123testSpecialTags(modelclient);
|
final response = api.call123testSpecialTags(modelClient);
|
||||||
print(response);
|
print(response);
|
||||||
} catch on DioException (e) {
|
} catch on DioException (e) {
|
||||||
print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n');
|
print('Exception when calling AnotherFakeApi->call123testSpecialTags: $e\n');
|
||||||
@ -38,7 +38,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**modelclient** | [**ModelClient**](ModelClient.md)| client model |
|
**modelClient** | [**ModelClient**](ModelClient.md)| client model |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**arrayarraynumber** | [**BuiltList<BuiltList<num>>**](BuiltList.md) | | [optional]
|
**arrayArrayNumber** | [**BuiltList<BuiltList<num>>**](BuiltList.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**arraynumber** | **BuiltList<num>** | | [optional]
|
**arrayNumber** | **BuiltList<num>** | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -8,12 +8,12 @@ import 'package:openapi/api.dart';
|
|||||||
## Properties
|
## Properties
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**smallcamel** | **String** | | [optional]
|
**smallCamel** | **String** | | [optional]
|
||||||
**capitalcamel** | **String** | | [optional]
|
**capitalCamel** | **String** | | [optional]
|
||||||
**smallSnake** | **String** | | [optional]
|
**smallSnake** | **String** | | [optional]
|
||||||
**capitalSnake** | **String** | | [optional]
|
**capitalSnake** | **String** | | [optional]
|
||||||
**scaEthFlowPoints** | **String** | | [optional]
|
**sCAETHFlowPoints** | **String** | | [optional]
|
||||||
**attName** | **String** | Name of the pet | [optional]
|
**ATT_NAME** | **String** | Name of the pet | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user