forked from loafle/openapi-generator-original
[dart] Cleanup, remove leftover inline objects/docs and regnerate tests (#8362)
This commit is contained in:
parent
c43234711a
commit
02473d8175
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**name** | **String** | Updated name of the pet | [optional]
|
|
||||||
**status** | **String** | Updated status 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)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject1
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**additionalMetadata** | **String** | Additional data to pass to server | [optional]
|
|
||||||
**file** | [**Uint8List**](Uint8List.md) | file to upload | [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)
|
|
||||||
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
import 'package:built_value/built_value.dart';
|
|
||||||
import 'package:built_value/serializer.dart';
|
|
||||||
|
|
||||||
part 'inline_object.g.dart';
|
|
||||||
|
|
||||||
abstract class InlineObject implements Built<InlineObject, InlineObjectBuilder> {
|
|
||||||
|
|
||||||
/// Updated name of the pet
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'name')
|
|
||||||
String get name;
|
|
||||||
|
|
||||||
/// Updated status of the pet
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'status')
|
|
||||||
String get status;
|
|
||||||
|
|
||||||
// Boilerplate code needed to wire-up generated code
|
|
||||||
InlineObject._();
|
|
||||||
|
|
||||||
static void _initializeBuilder(InlineObjectBuilder b) => b;
|
|
||||||
|
|
||||||
factory InlineObject([void updates(InlineObjectBuilder b)]) = _$InlineObject;
|
|
||||||
static Serializer<InlineObject> get serializer => _$inlineObjectSerializer;
|
|
||||||
}
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
import 'dart:typed_data';
|
|
||||||
import 'package:built_value/built_value.dart';
|
|
||||||
import 'package:built_value/serializer.dart';
|
|
||||||
|
|
||||||
part 'inline_object1.g.dart';
|
|
||||||
|
|
||||||
abstract class InlineObject1 implements Built<InlineObject1, InlineObject1Builder> {
|
|
||||||
|
|
||||||
/// Additional data to pass to server
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'additionalMetadata')
|
|
||||||
String get additionalMetadata;
|
|
||||||
|
|
||||||
/// file to upload
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'file')
|
|
||||||
Uint8List get file;
|
|
||||||
|
|
||||||
// Boilerplate code needed to wire-up generated code
|
|
||||||
InlineObject1._();
|
|
||||||
|
|
||||||
static void _initializeBuilder(InlineObject1Builder b) => b;
|
|
||||||
|
|
||||||
factory InlineObject1([void updates(InlineObject1Builder b)]) = _$InlineObject1;
|
|
||||||
static Serializer<InlineObject1> get serializer => _$inlineObject1Serializer;
|
|
||||||
}
|
|
||||||
|
|
@ -6,17 +6,17 @@ void main() {
|
|||||||
final instance = ApiResponse();
|
final instance = ApiResponse();
|
||||||
|
|
||||||
group(ApiResponse, () {
|
group(ApiResponse, () {
|
||||||
// int code (default value: null)
|
// int code
|
||||||
test('to test the property `code`', () async {
|
test('to test the property `code`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String type (default value: null)
|
// String type
|
||||||
test('to test the property `type`', () async {
|
test('to test the property `type`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String message (default value: null)
|
// String message
|
||||||
test('to test the property `message`', () async {
|
test('to test the property `message`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,12 +6,12 @@ void main() {
|
|||||||
final instance = Category();
|
final instance = Category();
|
||||||
|
|
||||||
group(Category, () {
|
group(Category, () {
|
||||||
// int id (default value: null)
|
// int id
|
||||||
test('to test the property `id`', () async {
|
test('to test the property `id`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String name (default value: null)
|
// String name
|
||||||
test('to test the property `name`', () async {
|
test('to test the property `name`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,28 +6,28 @@ void main() {
|
|||||||
final instance = Order();
|
final instance = Order();
|
||||||
|
|
||||||
group(Order, () {
|
group(Order, () {
|
||||||
// int id (default value: null)
|
// int id
|
||||||
test('to test the property `id`', () async {
|
test('to test the property `id`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// int petId (default value: null)
|
// int petId
|
||||||
test('to test the property `petId`', () async {
|
test('to test the property `petId`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// int quantity (default value: null)
|
// int quantity
|
||||||
test('to test the property `quantity`', () async {
|
test('to test the property `quantity`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// DateTime shipDate (default value: null)
|
// DateTime shipDate
|
||||||
test('to test the property `shipDate`', () async {
|
test('to test the property `shipDate`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// Order Status
|
// Order Status
|
||||||
// String status (default value: null)
|
// String status
|
||||||
test('to test the property `status`', () async {
|
test('to test the property `status`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,33 +6,33 @@ void main() {
|
|||||||
final instance = Pet();
|
final instance = Pet();
|
||||||
|
|
||||||
group(Pet, () {
|
group(Pet, () {
|
||||||
// int id (default value: null)
|
// int id
|
||||||
test('to test the property `id`', () async {
|
test('to test the property `id`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// Category category (default value: null)
|
// Category category
|
||||||
test('to test the property `category`', () async {
|
test('to test the property `category`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String name (default value: null)
|
// String name
|
||||||
test('to test the property `name`', () async {
|
test('to test the property `name`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<String> photoUrls (default value: const [])
|
// BuiltList<String> photoUrls
|
||||||
test('to test the property `photoUrls`', () async {
|
test('to test the property `photoUrls`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<Tag> tags (default value: const [])
|
// BuiltList<Tag> tags
|
||||||
test('to test the property `tags`', () async {
|
test('to test the property `tags`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// pet status in the store
|
// pet status in the store
|
||||||
// String status (default value: null)
|
// String status
|
||||||
test('to test the property `status`', () async {
|
test('to test the property `status`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,12 +6,12 @@ void main() {
|
|||||||
final instance = Tag();
|
final instance = Tag();
|
||||||
|
|
||||||
group(Tag, () {
|
group(Tag, () {
|
||||||
// int id (default value: null)
|
// int id
|
||||||
test('to test the property `id`', () async {
|
test('to test the property `id`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String name (default value: null)
|
// String name
|
||||||
test('to test the property `name`', () async {
|
test('to test the property `name`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,43 +6,43 @@ void main() {
|
|||||||
final instance = User();
|
final instance = User();
|
||||||
|
|
||||||
group(User, () {
|
group(User, () {
|
||||||
// int id (default value: null)
|
// int id
|
||||||
test('to test the property `id`', () async {
|
test('to test the property `id`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String username (default value: null)
|
// String username
|
||||||
test('to test the property `username`', () async {
|
test('to test the property `username`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String firstName (default value: null)
|
// String firstName
|
||||||
test('to test the property `firstName`', () async {
|
test('to test the property `firstName`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String lastName (default value: null)
|
// String lastName
|
||||||
test('to test the property `lastName`', () async {
|
test('to test the property `lastName`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String email (default value: null)
|
// String email
|
||||||
test('to test the property `email`', () async {
|
test('to test the property `email`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String password (default value: null)
|
// String password
|
||||||
test('to test the property `password`', () async {
|
test('to test the property `password`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String phone (default value: null)
|
// String phone
|
||||||
test('to test the property `phone`', () async {
|
test('to test the property `phone`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// User Status
|
// User Status
|
||||||
// int userStatus (default value: null)
|
// int userStatus
|
||||||
test('to test the property `userStatus`', () async {
|
test('to test the property `userStatus`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**name** | **String** | Updated name of the pet | [optional]
|
|
||||||
**status** | **String** | Updated status 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)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject1
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**additionalMetadata** | **String** | Additional data to pass to server | [optional]
|
|
||||||
**file** | [**Uint8List**](Uint8List.md) | file to upload | [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)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject2
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**enumFormStringArray** | **BuiltList<String>** | Form parameter enum test (string array) | [optional]
|
|
||||||
**enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to '-efg']
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
|||||||
# openapi.model.InlineObject3
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**integer** | **int** | None | [optional]
|
|
||||||
**int32** | **int** | None | [optional]
|
|
||||||
**int64** | **int** | None | [optional]
|
|
||||||
**number** | **num** | None |
|
|
||||||
**float** | **double** | None | [optional]
|
|
||||||
**double_** | **double** | None |
|
|
||||||
**string** | **String** | None | [optional]
|
|
||||||
**patternWithoutDelimiter** | **String** | None |
|
|
||||||
**byte** | **String** | None |
|
|
||||||
**binary** | [**Uint8List**](Uint8List.md) | None | [optional]
|
|
||||||
**date** | [**DateTime**](DateTime.md) | None | [optional]
|
|
||||||
**dateTime** | [**DateTime**](DateTime.md) | None | [optional]
|
|
||||||
**password** | **String** | None | [optional]
|
|
||||||
**callback** | **String** | None | [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)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject4
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**param** | **String** | field1 |
|
|
||||||
**param2** | **String** | field2 |
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject5
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**additionalMetadata** | **String** | Additional data to pass to server | [optional]
|
|
||||||
**requiredFile** | [**Uint8List**](Uint8List.md) | file to upload |
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
import 'package:built_value/built_value.dart';
|
|
||||||
import 'package:built_value/serializer.dart';
|
|
||||||
|
|
||||||
part 'inline_object.g.dart';
|
|
||||||
|
|
||||||
abstract class InlineObject implements Built<InlineObject, InlineObjectBuilder> {
|
|
||||||
|
|
||||||
/// Updated name of the pet
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'name')
|
|
||||||
String get name;
|
|
||||||
|
|
||||||
/// Updated status of the pet
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'status')
|
|
||||||
String get status;
|
|
||||||
|
|
||||||
// Boilerplate code needed to wire-up generated code
|
|
||||||
InlineObject._();
|
|
||||||
|
|
||||||
static void _initializeBuilder(InlineObjectBuilder b) => b;
|
|
||||||
|
|
||||||
factory InlineObject([void updates(InlineObjectBuilder b)]) = _$InlineObject;
|
|
||||||
static Serializer<InlineObject> get serializer => _$inlineObjectSerializer;
|
|
||||||
}
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
import 'dart:typed_data';
|
|
||||||
import 'package:built_value/built_value.dart';
|
|
||||||
import 'package:built_value/serializer.dart';
|
|
||||||
|
|
||||||
part 'inline_object1.g.dart';
|
|
||||||
|
|
||||||
abstract class InlineObject1 implements Built<InlineObject1, InlineObject1Builder> {
|
|
||||||
|
|
||||||
/// Additional data to pass to server
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'additionalMetadata')
|
|
||||||
String get additionalMetadata;
|
|
||||||
|
|
||||||
/// file to upload
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'file')
|
|
||||||
Uint8List get file;
|
|
||||||
|
|
||||||
// Boilerplate code needed to wire-up generated code
|
|
||||||
InlineObject1._();
|
|
||||||
|
|
||||||
static void _initializeBuilder(InlineObject1Builder b) => b;
|
|
||||||
|
|
||||||
factory InlineObject1([void updates(InlineObject1Builder b)]) = _$InlineObject1;
|
|
||||||
static Serializer<InlineObject1> get serializer => _$inlineObject1Serializer;
|
|
||||||
}
|
|
||||||
|
|
@ -1,65 +0,0 @@
|
|||||||
import 'package:built_collection/built_collection.dart';
|
|
||||||
import 'package:built_value/built_value.dart';
|
|
||||||
import 'package:built_value/serializer.dart';
|
|
||||||
|
|
||||||
part 'inline_object2.g.dart';
|
|
||||||
|
|
||||||
abstract class InlineObject2 implements Built<InlineObject2, InlineObject2Builder> {
|
|
||||||
|
|
||||||
/// Form parameter enum test (string array)
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'enum_form_string_array')
|
|
||||||
BuiltList<InlineObject2EnumFormStringArrayEnum> get enumFormStringArray;
|
|
||||||
// enum enumFormStringArrayEnum { >, $, };
|
|
||||||
|
|
||||||
/// Form parameter enum test (string)
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'enum_form_string')
|
|
||||||
InlineObject2EnumFormStringEnum get enumFormString;
|
|
||||||
// enum enumFormStringEnum { _abc, -efg, (xyz), };
|
|
||||||
|
|
||||||
// Boilerplate code needed to wire-up generated code
|
|
||||||
InlineObject2._();
|
|
||||||
|
|
||||||
static void _initializeBuilder(InlineObject2Builder b) => b
|
|
||||||
..enumFormString = const InlineObject2EnumFormStringEnum._('-efg');
|
|
||||||
|
|
||||||
factory InlineObject2([void updates(InlineObject2Builder b)]) = _$InlineObject2;
|
|
||||||
static Serializer<InlineObject2> get serializer => _$inlineObject2Serializer;
|
|
||||||
}
|
|
||||||
|
|
||||||
class InlineObject2EnumFormStringArrayEnum extends EnumClass {
|
|
||||||
|
|
||||||
@BuiltValueEnumConst(wireName: r'>')
|
|
||||||
static const InlineObject2EnumFormStringArrayEnum greaterThan = _$inlineObject2EnumFormStringArrayEnum_greaterThan;
|
|
||||||
@BuiltValueEnumConst(wireName: r'\$')
|
|
||||||
static const InlineObject2EnumFormStringArrayEnum dollar = _$inlineObject2EnumFormStringArrayEnum_dollar;
|
|
||||||
|
|
||||||
static Serializer<InlineObject2EnumFormStringArrayEnum> get serializer => _$inlineObject2EnumFormStringArrayEnumSerializer;
|
|
||||||
|
|
||||||
const InlineObject2EnumFormStringArrayEnum._(String name): super(name);
|
|
||||||
|
|
||||||
static BuiltSet<InlineObject2EnumFormStringArrayEnum> get values => _$inlineObject2EnumFormStringArrayEnumValues;
|
|
||||||
static InlineObject2EnumFormStringArrayEnum valueOf(String name) => _$inlineObject2EnumFormStringArrayEnumValueOf(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
class InlineObject2EnumFormStringEnum extends EnumClass {
|
|
||||||
|
|
||||||
/// Form parameter enum test (string)
|
|
||||||
@BuiltValueEnumConst(wireName: r'_abc')
|
|
||||||
static const InlineObject2EnumFormStringEnum abc = _$inlineObject2EnumFormStringEnum_abc;
|
|
||||||
/// Form parameter enum test (string)
|
|
||||||
@BuiltValueEnumConst(wireName: r'-efg')
|
|
||||||
static const InlineObject2EnumFormStringEnum efg = _$inlineObject2EnumFormStringEnum_efg;
|
|
||||||
/// Form parameter enum test (string)
|
|
||||||
@BuiltValueEnumConst(wireName: r'(xyz)')
|
|
||||||
static const InlineObject2EnumFormStringEnum leftParenthesisXyzRightParenthesis = _$inlineObject2EnumFormStringEnum_leftParenthesisXyzRightParenthesis;
|
|
||||||
|
|
||||||
static Serializer<InlineObject2EnumFormStringEnum> get serializer => _$inlineObject2EnumFormStringEnumSerializer;
|
|
||||||
|
|
||||||
const InlineObject2EnumFormStringEnum._(String name): super(name);
|
|
||||||
|
|
||||||
static BuiltSet<InlineObject2EnumFormStringEnum> get values => _$inlineObject2EnumFormStringEnumValues;
|
|
||||||
static InlineObject2EnumFormStringEnum valueOf(String name) => _$inlineObject2EnumFormStringEnumValueOf(name);
|
|
||||||
}
|
|
||||||
|
|
@ -1,87 +0,0 @@
|
|||||||
import 'dart:typed_data';
|
|
||||||
import 'package:built_value/built_value.dart';
|
|
||||||
import 'package:built_value/serializer.dart';
|
|
||||||
|
|
||||||
part 'inline_object3.g.dart';
|
|
||||||
|
|
||||||
abstract class InlineObject3 implements Built<InlineObject3, InlineObject3Builder> {
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'integer')
|
|
||||||
int get integer;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'int32')
|
|
||||||
int get int32;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'int64')
|
|
||||||
int get int64;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'number')
|
|
||||||
num get number;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'float')
|
|
||||||
double get float;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'double')
|
|
||||||
double get double_;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'string')
|
|
||||||
String get string;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'pattern_without_delimiter')
|
|
||||||
String get patternWithoutDelimiter;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'byte')
|
|
||||||
String get byte;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'binary')
|
|
||||||
Uint8List get binary;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'date')
|
|
||||||
DateTime get date;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'dateTime')
|
|
||||||
DateTime get dateTime;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'password')
|
|
||||||
String get password;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'callback')
|
|
||||||
String get callback;
|
|
||||||
|
|
||||||
// Boilerplate code needed to wire-up generated code
|
|
||||||
InlineObject3._();
|
|
||||||
|
|
||||||
static void _initializeBuilder(InlineObject3Builder b) => b;
|
|
||||||
|
|
||||||
factory InlineObject3([void updates(InlineObject3Builder b)]) = _$InlineObject3;
|
|
||||||
static Serializer<InlineObject3> get serializer => _$inlineObject3Serializer;
|
|
||||||
}
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
|||||||
import 'package:built_value/built_value.dart';
|
|
||||||
import 'package:built_value/serializer.dart';
|
|
||||||
|
|
||||||
part 'inline_object4.g.dart';
|
|
||||||
|
|
||||||
abstract class InlineObject4 implements Built<InlineObject4, InlineObject4Builder> {
|
|
||||||
|
|
||||||
/// field1
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'param')
|
|
||||||
String get param;
|
|
||||||
|
|
||||||
/// field2
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'param2')
|
|
||||||
String get param2;
|
|
||||||
|
|
||||||
// Boilerplate code needed to wire-up generated code
|
|
||||||
InlineObject4._();
|
|
||||||
|
|
||||||
static void _initializeBuilder(InlineObject4Builder b) => b;
|
|
||||||
|
|
||||||
factory InlineObject4([void updates(InlineObject4Builder b)]) = _$InlineObject4;
|
|
||||||
static Serializer<InlineObject4> get serializer => _$inlineObject4Serializer;
|
|
||||||
}
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
import 'dart:typed_data';
|
|
||||||
import 'package:built_value/built_value.dart';
|
|
||||||
import 'package:built_value/serializer.dart';
|
|
||||||
|
|
||||||
part 'inline_object5.g.dart';
|
|
||||||
|
|
||||||
abstract class InlineObject5 implements Built<InlineObject5, InlineObject5Builder> {
|
|
||||||
|
|
||||||
/// Additional data to pass to server
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'additionalMetadata')
|
|
||||||
String get additionalMetadata;
|
|
||||||
|
|
||||||
/// file to upload
|
|
||||||
@nullable
|
|
||||||
@BuiltValueField(wireName: r'requiredFile')
|
|
||||||
Uint8List get requiredFile;
|
|
||||||
|
|
||||||
// Boilerplate code needed to wire-up generated code
|
|
||||||
InlineObject5._();
|
|
||||||
|
|
||||||
static void _initializeBuilder(InlineObject5Builder b) => b;
|
|
||||||
|
|
||||||
factory InlineObject5([void updates(InlineObject5Builder b)]) = _$InlineObject5;
|
|
||||||
static Serializer<InlineObject5> get serializer => _$inlineObject5Serializer;
|
|
||||||
}
|
|
||||||
|
|
@ -6,12 +6,12 @@ void main() {
|
|||||||
final instance = AdditionalPropertiesClass();
|
final instance = AdditionalPropertiesClass();
|
||||||
|
|
||||||
group(AdditionalPropertiesClass, () {
|
group(AdditionalPropertiesClass, () {
|
||||||
// BuiltMap<String, String> mapProperty (default value: const {})
|
// BuiltMap<String, String> mapProperty
|
||||||
test('to test the property `mapProperty`', () async {
|
test('to test the property `mapProperty`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltMap<String, BuiltMap<String, String>> mapOfMapProperty (default value: const {})
|
// BuiltMap<String, BuiltMap<String, String>> mapOfMapProperty
|
||||||
test('to test the property `mapOfMapProperty`', () async {
|
test('to test the property `mapOfMapProperty`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = Animal();
|
final instance = Animal();
|
||||||
|
|
||||||
group(Animal, () {
|
group(Animal, () {
|
||||||
// String className (default value: null)
|
// String className
|
||||||
test('to test the property `className`', () async {
|
test('to test the property `className`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -12,7 +12,7 @@ void main() {
|
|||||||
//
|
//
|
||||||
// To test special tags and operation ID starting with number
|
// To test special tags and operation ID starting with number
|
||||||
//
|
//
|
||||||
//Future<Client> call123testSpecialTags(Client client) async
|
//Future<ModelClient> call123testSpecialTags(ModelClient modelClient) async
|
||||||
test('test call123testSpecialTags', () async {
|
test('test call123testSpecialTags', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,17 +6,17 @@ void main() {
|
|||||||
final instance = ApiResponse();
|
final instance = ApiResponse();
|
||||||
|
|
||||||
group(ApiResponse, () {
|
group(ApiResponse, () {
|
||||||
// int code (default value: null)
|
// int code
|
||||||
test('to test the property `code`', () async {
|
test('to test the property `code`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String type (default value: null)
|
// String type
|
||||||
test('to test the property `type`', () async {
|
test('to test the property `type`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String message (default value: null)
|
// String message
|
||||||
test('to test the property `message`', () async {
|
test('to test the property `message`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = ArrayOfArrayOfNumberOnly();
|
final instance = ArrayOfArrayOfNumberOnly();
|
||||||
|
|
||||||
group(ArrayOfArrayOfNumberOnly, () {
|
group(ArrayOfArrayOfNumberOnly, () {
|
||||||
// BuiltList<BuiltList<num>> arrayArrayNumber (default value: const [])
|
// BuiltList<BuiltList<num>> arrayArrayNumber
|
||||||
test('to test the property `arrayArrayNumber`', () async {
|
test('to test the property `arrayArrayNumber`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = ArrayOfNumberOnly();
|
final instance = ArrayOfNumberOnly();
|
||||||
|
|
||||||
group(ArrayOfNumberOnly, () {
|
group(ArrayOfNumberOnly, () {
|
||||||
// BuiltList<num> arrayNumber (default value: const [])
|
// BuiltList<num> arrayNumber
|
||||||
test('to test the property `arrayNumber`', () async {
|
test('to test the property `arrayNumber`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,17 +6,17 @@ void main() {
|
|||||||
final instance = ArrayTest();
|
final instance = ArrayTest();
|
||||||
|
|
||||||
group(ArrayTest, () {
|
group(ArrayTest, () {
|
||||||
// BuiltList<String> arrayOfString (default value: const [])
|
// BuiltList<String> arrayOfString
|
||||||
test('to test the property `arrayOfString`', () async {
|
test('to test the property `arrayOfString`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<BuiltList<int>> arrayArrayOfInteger (default value: const [])
|
// BuiltList<BuiltList<int>> arrayArrayOfInteger
|
||||||
test('to test the property `arrayArrayOfInteger`', () async {
|
test('to test the property `arrayArrayOfInteger`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<BuiltList<ReadOnlyFirst>> arrayArrayOfModel (default value: const [])
|
// BuiltList<BuiltList<ReadOnlyFirst>> arrayArrayOfModel
|
||||||
test('to test the property `arrayArrayOfModel`', () async {
|
test('to test the property `arrayArrayOfModel`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,33 +6,33 @@ void main() {
|
|||||||
final instance = Capitalization();
|
final instance = Capitalization();
|
||||||
|
|
||||||
group(Capitalization, () {
|
group(Capitalization, () {
|
||||||
// String smallCamel (default value: null)
|
// String smallCamel
|
||||||
test('to test the property `smallCamel`', () async {
|
test('to test the property `smallCamel`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String capitalCamel (default value: null)
|
// String capitalCamel
|
||||||
test('to test the property `capitalCamel`', () async {
|
test('to test the property `capitalCamel`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String smallSnake (default value: null)
|
// String smallSnake
|
||||||
test('to test the property `smallSnake`', () async {
|
test('to test the property `smallSnake`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String capitalSnake (default value: null)
|
// String capitalSnake
|
||||||
test('to test the property `capitalSnake`', () async {
|
test('to test the property `capitalSnake`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String sCAETHFlowPoints (default value: null)
|
// String sCAETHFlowPoints
|
||||||
test('to test the property `sCAETHFlowPoints`', () async {
|
test('to test the property `sCAETHFlowPoints`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// Name of the pet
|
// Name of the pet
|
||||||
// String ATT_NAME (default value: null)
|
// String ATT_NAME
|
||||||
test('to test the property `ATT_NAME`', () async {
|
test('to test the property `ATT_NAME`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = CatAllOf();
|
final instance = CatAllOf();
|
||||||
|
|
||||||
group(CatAllOf, () {
|
group(CatAllOf, () {
|
||||||
// bool declawed (default value: null)
|
// bool declawed
|
||||||
test('to test the property `declawed`', () async {
|
test('to test the property `declawed`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = Cat();
|
final instance = Cat();
|
||||||
|
|
||||||
group(Cat, () {
|
group(Cat, () {
|
||||||
// String className (default value: null)
|
// String className
|
||||||
test('to test the property `className`', () async {
|
test('to test the property `className`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
@ -16,7 +16,7 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// bool declawed (default value: null)
|
// bool declawed
|
||||||
test('to test the property `declawed`', () async {
|
test('to test the property `declawed`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = Category();
|
final instance = Category();
|
||||||
|
|
||||||
group(Category, () {
|
group(Category, () {
|
||||||
// int id (default value: null)
|
// int id
|
||||||
test('to test the property `id`', () async {
|
test('to test the property `id`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = ClassModel();
|
final instance = ClassModel();
|
||||||
|
|
||||||
group(ClassModel, () {
|
group(ClassModel, () {
|
||||||
// String class_ (default value: null)
|
// String class_
|
||||||
test('to test the property `class_`', () async {
|
test('to test the property `class_`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = DogAllOf();
|
final instance = DogAllOf();
|
||||||
|
|
||||||
group(DogAllOf, () {
|
group(DogAllOf, () {
|
||||||
// String breed (default value: null)
|
// String breed
|
||||||
test('to test the property `breed`', () async {
|
test('to test the property `breed`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = Dog();
|
final instance = Dog();
|
||||||
|
|
||||||
group(Dog, () {
|
group(Dog, () {
|
||||||
// String className (default value: null)
|
// String className
|
||||||
test('to test the property `className`', () async {
|
test('to test the property `className`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
@ -16,7 +16,7 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String breed (default value: null)
|
// String breed
|
||||||
test('to test the property `breed`', () async {
|
test('to test the property `breed`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,12 +6,12 @@ void main() {
|
|||||||
final instance = EnumArrays();
|
final instance = EnumArrays();
|
||||||
|
|
||||||
group(EnumArrays, () {
|
group(EnumArrays, () {
|
||||||
// String justSymbol (default value: null)
|
// String justSymbol
|
||||||
test('to test the property `justSymbol`', () async {
|
test('to test the property `justSymbol`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<String> arrayEnum (default value: const [])
|
// BuiltList<String> arrayEnum
|
||||||
test('to test the property `arrayEnum`', () async {
|
test('to test the property `arrayEnum`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,42 +6,42 @@ void main() {
|
|||||||
final instance = EnumTest();
|
final instance = EnumTest();
|
||||||
|
|
||||||
group(EnumTest, () {
|
group(EnumTest, () {
|
||||||
// String enumString (default value: null)
|
// String enumString
|
||||||
test('to test the property `enumString`', () async {
|
test('to test the property `enumString`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String enumStringRequired (default value: null)
|
// String enumStringRequired
|
||||||
test('to test the property `enumStringRequired`', () async {
|
test('to test the property `enumStringRequired`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// int enumInteger (default value: null)
|
// int enumInteger
|
||||||
test('to test the property `enumInteger`', () async {
|
test('to test the property `enumInteger`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// double enumNumber (default value: null)
|
// double enumNumber
|
||||||
test('to test the property `enumNumber`', () async {
|
test('to test the property `enumNumber`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// OuterEnum outerEnum (default value: null)
|
// OuterEnum outerEnum
|
||||||
test('to test the property `outerEnum`', () async {
|
test('to test the property `outerEnum`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// OuterEnumInteger outerEnumInteger (default value: null)
|
// OuterEnumInteger outerEnumInteger
|
||||||
test('to test the property `outerEnumInteger`', () async {
|
test('to test the property `outerEnumInteger`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// OuterEnumDefaultValue outerEnumDefaultValue (default value: null)
|
// OuterEnumDefaultValue outerEnumDefaultValue
|
||||||
test('to test the property `outerEnumDefaultValue`', () async {
|
test('to test the property `outerEnumDefaultValue`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue (default value: null)
|
// OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue
|
||||||
test('to test the property `outerEnumIntegerDefaultValue`', () async {
|
test('to test the property `outerEnumIntegerDefaultValue`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -66,7 +66,7 @@ void main() {
|
|||||||
//
|
//
|
||||||
// To test \"client\" model
|
// To test \"client\" model
|
||||||
//
|
//
|
||||||
//Future<Client> testClientModel(Client client) async
|
//Future<ModelClient> testClientModel(ModelClient modelClient) async
|
||||||
test('test testClientModel', () async {
|
test('test testClientModel', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -12,7 +12,7 @@ void main() {
|
|||||||
//
|
//
|
||||||
// To test class name in snake case
|
// To test class name in snake case
|
||||||
//
|
//
|
||||||
//Future<Client> testClassname(Client client) async
|
//Future<ModelClient> testClassname(ModelClient modelClient) async
|
||||||
test('test testClassname', () async {
|
test('test testClassname', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,12 +6,12 @@ void main() {
|
|||||||
final instance = FileSchemaTestClass();
|
final instance = FileSchemaTestClass();
|
||||||
|
|
||||||
group(FileSchemaTestClass, () {
|
group(FileSchemaTestClass, () {
|
||||||
// MultipartFile file (default value: null)
|
// ModelFile file
|
||||||
test('to test the property `file`', () async {
|
test('to test the property `file`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<MultipartFile> files (default value: const [])
|
// BuiltList<ModelFile> files
|
||||||
test('to test the property `files`', () async {
|
test('to test the property `files`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,84 +6,84 @@ void main() {
|
|||||||
final instance = FormatTest();
|
final instance = FormatTest();
|
||||||
|
|
||||||
group(FormatTest, () {
|
group(FormatTest, () {
|
||||||
// int integer (default value: null)
|
// int integer
|
||||||
test('to test the property `integer`', () async {
|
test('to test the property `integer`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// int int32 (default value: null)
|
// int int32
|
||||||
test('to test the property `int32`', () async {
|
test('to test the property `int32`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// int int64 (default value: null)
|
// int int64
|
||||||
test('to test the property `int64`', () async {
|
test('to test the property `int64`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// num number (default value: null)
|
// num number
|
||||||
test('to test the property `number`', () async {
|
test('to test the property `number`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// double float (default value: null)
|
// double float
|
||||||
test('to test the property `float`', () async {
|
test('to test the property `float`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// double double_ (default value: null)
|
// double double_
|
||||||
test('to test the property `double_`', () async {
|
test('to test the property `double_`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// double decimal (default value: null)
|
// double decimal
|
||||||
test('to test the property `decimal`', () async {
|
test('to test the property `decimal`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String string (default value: null)
|
// String string
|
||||||
test('to test the property `string`', () async {
|
test('to test the property `string`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String byte (default value: null)
|
// String byte
|
||||||
test('to test the property `byte`', () async {
|
test('to test the property `byte`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// Uint8List binary (default value: null)
|
// Uint8List binary
|
||||||
test('to test the property `binary`', () async {
|
test('to test the property `binary`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// DateTime date (default value: null)
|
// DateTime date
|
||||||
test('to test the property `date`', () async {
|
test('to test the property `date`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// DateTime dateTime (default value: null)
|
// DateTime dateTime
|
||||||
test('to test the property `dateTime`', () async {
|
test('to test the property `dateTime`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String uuid (default value: null)
|
// String uuid
|
||||||
test('to test the property `uuid`', () async {
|
test('to test the property `uuid`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String password (default value: null)
|
// String password
|
||||||
test('to test the property `password`', () async {
|
test('to test the property `password`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// A string that is a 10 digit number. Can have leading zeros.
|
// A string that is a 10 digit number. Can have leading zeros.
|
||||||
// String patternWithDigits (default value: null)
|
// String patternWithDigits
|
||||||
test('to test the property `patternWithDigits`', () async {
|
test('to test the property `patternWithDigits`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.
|
// A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.
|
||||||
// String patternWithDigitsAndDelimiter (default value: null)
|
// String patternWithDigitsAndDelimiter
|
||||||
test('to test the property `patternWithDigitsAndDelimiter`', () async {
|
test('to test the property `patternWithDigitsAndDelimiter`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,12 +6,12 @@ void main() {
|
|||||||
final instance = HasOnlyReadOnly();
|
final instance = HasOnlyReadOnly();
|
||||||
|
|
||||||
group(HasOnlyReadOnly, () {
|
group(HasOnlyReadOnly, () {
|
||||||
// String bar (default value: null)
|
// String bar
|
||||||
test('to test the property `bar`', () async {
|
test('to test the property `bar`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String foo (default value: null)
|
// String foo
|
||||||
test('to test the property `foo`', () async {
|
test('to test the property `foo`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = HealthCheckResult();
|
final instance = HealthCheckResult();
|
||||||
|
|
||||||
group(HealthCheckResult, () {
|
group(HealthCheckResult, () {
|
||||||
// String nullableMessage (default value: null)
|
// String nullableMessage
|
||||||
test('to test the property `nullableMessage`', () async {
|
test('to test the property `nullableMessage`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = InlineResponseDefault();
|
final instance = InlineResponseDefault();
|
||||||
|
|
||||||
group(InlineResponseDefault, () {
|
group(InlineResponseDefault, () {
|
||||||
// Foo string (default value: null)
|
// Foo string
|
||||||
test('to test the property `string`', () async {
|
test('to test the property `string`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,22 +6,22 @@ void main() {
|
|||||||
final instance = MapTest();
|
final instance = MapTest();
|
||||||
|
|
||||||
group(MapTest, () {
|
group(MapTest, () {
|
||||||
// BuiltMap<String, BuiltMap<String, String>> mapMapOfString (default value: const {})
|
// BuiltMap<String, BuiltMap<String, String>> mapMapOfString
|
||||||
test('to test the property `mapMapOfString`', () async {
|
test('to test the property `mapMapOfString`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltMap<String, String> mapOfEnumString (default value: const {})
|
// BuiltMap<String, String> mapOfEnumString
|
||||||
test('to test the property `mapOfEnumString`', () async {
|
test('to test the property `mapOfEnumString`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltMap<String, bool> directMap (default value: const {})
|
// BuiltMap<String, bool> directMap
|
||||||
test('to test the property `directMap`', () async {
|
test('to test the property `directMap`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltMap<String, bool> indirectMap (default value: const {})
|
// BuiltMap<String, bool> indirectMap
|
||||||
test('to test the property `indirectMap`', () async {
|
test('to test the property `indirectMap`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,17 +6,17 @@ void main() {
|
|||||||
final instance = MixedPropertiesAndAdditionalPropertiesClass();
|
final instance = MixedPropertiesAndAdditionalPropertiesClass();
|
||||||
|
|
||||||
group(MixedPropertiesAndAdditionalPropertiesClass, () {
|
group(MixedPropertiesAndAdditionalPropertiesClass, () {
|
||||||
// String uuid (default value: null)
|
// String uuid
|
||||||
test('to test the property `uuid`', () async {
|
test('to test the property `uuid`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// DateTime dateTime (default value: null)
|
// DateTime dateTime
|
||||||
test('to test the property `dateTime`', () async {
|
test('to test the property `dateTime`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltMap<String, Animal> map (default value: const {})
|
// BuiltMap<String, Animal> map
|
||||||
test('to test the property `map`', () async {
|
test('to test the property `map`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,12 +6,12 @@ void main() {
|
|||||||
final instance = Model200Response();
|
final instance = Model200Response();
|
||||||
|
|
||||||
group(Model200Response, () {
|
group(Model200Response, () {
|
||||||
// int name (default value: null)
|
// int name
|
||||||
test('to test the property `name`', () async {
|
test('to test the property `name`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String class_ (default value: null)
|
// String class_
|
||||||
test('to test the property `class_`', () async {
|
test('to test the property `class_`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = ModelClient();
|
final instance = ModelClient();
|
||||||
|
|
||||||
group(ModelClient, () {
|
group(ModelClient, () {
|
||||||
// String client (default value: null)
|
// String client
|
||||||
test('to test the property `client`', () async {
|
test('to test the property `client`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -7,7 +7,7 @@ void main() {
|
|||||||
|
|
||||||
group(ModelFile, () {
|
group(ModelFile, () {
|
||||||
// Test capitalization
|
// Test capitalization
|
||||||
// String sourceURI (default value: null)
|
// String sourceURI
|
||||||
test('to test the property `sourceURI`', () async {
|
test('to test the property `sourceURI`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = ModelList();
|
final instance = ModelList();
|
||||||
|
|
||||||
group(ModelList, () {
|
group(ModelList, () {
|
||||||
// String n123list (default value: null)
|
// String n123list
|
||||||
test('to test the property `n123list`', () async {
|
test('to test the property `n123list`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = ModelReturn();
|
final instance = ModelReturn();
|
||||||
|
|
||||||
group(ModelReturn, () {
|
group(ModelReturn, () {
|
||||||
// int return_ (default value: null)
|
// int return_
|
||||||
test('to test the property `return_`', () async {
|
test('to test the property `return_`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,22 +6,22 @@ void main() {
|
|||||||
final instance = Name();
|
final instance = Name();
|
||||||
|
|
||||||
group(Name, () {
|
group(Name, () {
|
||||||
// int name (default value: null)
|
// int name
|
||||||
test('to test the property `name`', () async {
|
test('to test the property `name`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// int snakeCase (default value: null)
|
// int snakeCase
|
||||||
test('to test the property `snakeCase`', () async {
|
test('to test the property `snakeCase`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String property (default value: null)
|
// String property
|
||||||
test('to test the property `property`', () async {
|
test('to test the property `property`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// int n123number (default value: null)
|
// int n123number
|
||||||
test('to test the property `n123number`', () async {
|
test('to test the property `n123number`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,62 +6,62 @@ void main() {
|
|||||||
final instance = NullableClass();
|
final instance = NullableClass();
|
||||||
|
|
||||||
group(NullableClass, () {
|
group(NullableClass, () {
|
||||||
// int integerProp (default value: null)
|
// int integerProp
|
||||||
test('to test the property `integerProp`', () async {
|
test('to test the property `integerProp`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// num numberProp (default value: null)
|
// num numberProp
|
||||||
test('to test the property `numberProp`', () async {
|
test('to test the property `numberProp`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// bool booleanProp (default value: null)
|
// bool booleanProp
|
||||||
test('to test the property `booleanProp`', () async {
|
test('to test the property `booleanProp`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String stringProp (default value: null)
|
// String stringProp
|
||||||
test('to test the property `stringProp`', () async {
|
test('to test the property `stringProp`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// DateTime dateProp (default value: null)
|
// DateTime dateProp
|
||||||
test('to test the property `dateProp`', () async {
|
test('to test the property `dateProp`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// DateTime datetimeProp (default value: null)
|
// DateTime datetimeProp
|
||||||
test('to test the property `datetimeProp`', () async {
|
test('to test the property `datetimeProp`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<JsonObject> arrayNullableProp (default value: const [])
|
// BuiltList<JsonObject> arrayNullableProp
|
||||||
test('to test the property `arrayNullableProp`', () async {
|
test('to test the property `arrayNullableProp`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<JsonObject> arrayAndItemsNullableProp (default value: const [])
|
// BuiltList<JsonObject> arrayAndItemsNullableProp
|
||||||
test('to test the property `arrayAndItemsNullableProp`', () async {
|
test('to test the property `arrayAndItemsNullableProp`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<JsonObject> arrayItemsNullable (default value: const [])
|
// BuiltList<JsonObject> arrayItemsNullable
|
||||||
test('to test the property `arrayItemsNullable`', () async {
|
test('to test the property `arrayItemsNullable`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltMap<String, JsonObject> objectNullableProp (default value: const {})
|
// BuiltMap<String, JsonObject> objectNullableProp
|
||||||
test('to test the property `objectNullableProp`', () async {
|
test('to test the property `objectNullableProp`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltMap<String, JsonObject> objectAndItemsNullableProp (default value: const {})
|
// BuiltMap<String, JsonObject> objectAndItemsNullableProp
|
||||||
test('to test the property `objectAndItemsNullableProp`', () async {
|
test('to test the property `objectAndItemsNullableProp`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltMap<String, JsonObject> objectItemsNullable (default value: const {})
|
// BuiltMap<String, JsonObject> objectItemsNullable
|
||||||
test('to test the property `objectItemsNullable`', () async {
|
test('to test the property `objectItemsNullable`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = NumberOnly();
|
final instance = NumberOnly();
|
||||||
|
|
||||||
group(NumberOnly, () {
|
group(NumberOnly, () {
|
||||||
// num justNumber (default value: null)
|
// num justNumber
|
||||||
test('to test the property `justNumber`', () async {
|
test('to test the property `justNumber`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,28 +6,28 @@ void main() {
|
|||||||
final instance = Order();
|
final instance = Order();
|
||||||
|
|
||||||
group(Order, () {
|
group(Order, () {
|
||||||
// int id (default value: null)
|
// int id
|
||||||
test('to test the property `id`', () async {
|
test('to test the property `id`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// int petId (default value: null)
|
// int petId
|
||||||
test('to test the property `petId`', () async {
|
test('to test the property `petId`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// int quantity (default value: null)
|
// int quantity
|
||||||
test('to test the property `quantity`', () async {
|
test('to test the property `quantity`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// DateTime shipDate (default value: null)
|
// DateTime shipDate
|
||||||
test('to test the property `shipDate`', () async {
|
test('to test the property `shipDate`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// Order Status
|
// Order Status
|
||||||
// String status (default value: null)
|
// String status
|
||||||
test('to test the property `status`', () async {
|
test('to test the property `status`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,17 +6,17 @@ void main() {
|
|||||||
final instance = OuterComposite();
|
final instance = OuterComposite();
|
||||||
|
|
||||||
group(OuterComposite, () {
|
group(OuterComposite, () {
|
||||||
// num myNumber (default value: null)
|
// num myNumber
|
||||||
test('to test the property `myNumber`', () async {
|
test('to test the property `myNumber`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String myString (default value: null)
|
// String myString
|
||||||
test('to test the property `myString`', () async {
|
test('to test the property `myString`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// bool myBoolean (default value: null)
|
// bool myBoolean
|
||||||
test('to test the property `myBoolean`', () async {
|
test('to test the property `myBoolean`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,33 +6,33 @@ void main() {
|
|||||||
final instance = Pet();
|
final instance = Pet();
|
||||||
|
|
||||||
group(Pet, () {
|
group(Pet, () {
|
||||||
// int id (default value: null)
|
// int id
|
||||||
test('to test the property `id`', () async {
|
test('to test the property `id`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// Category category (default value: null)
|
// Category category
|
||||||
test('to test the property `category`', () async {
|
test('to test the property `category`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String name (default value: null)
|
// String name
|
||||||
test('to test the property `name`', () async {
|
test('to test the property `name`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<String> photoUrls (default value: const [])
|
// BuiltList<String> photoUrls
|
||||||
test('to test the property `photoUrls`', () async {
|
test('to test the property `photoUrls`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// BuiltList<Tag> tags (default value: const [])
|
// BuiltList<Tag> tags
|
||||||
test('to test the property `tags`', () async {
|
test('to test the property `tags`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// pet status in the store
|
// pet status in the store
|
||||||
// String status (default value: null)
|
// String status
|
||||||
test('to test the property `status`', () async {
|
test('to test the property `status`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,12 +6,12 @@ void main() {
|
|||||||
final instance = ReadOnlyFirst();
|
final instance = ReadOnlyFirst();
|
||||||
|
|
||||||
group(ReadOnlyFirst, () {
|
group(ReadOnlyFirst, () {
|
||||||
// String bar (default value: null)
|
// String bar
|
||||||
test('to test the property `bar`', () async {
|
test('to test the property `bar`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String baz (default value: null)
|
// String baz
|
||||||
test('to test the property `baz`', () async {
|
test('to test the property `baz`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,7 @@ void main() {
|
|||||||
final instance = SpecialModelName();
|
final instance = SpecialModelName();
|
||||||
|
|
||||||
group(SpecialModelName, () {
|
group(SpecialModelName, () {
|
||||||
// int dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket (default value: null)
|
// int dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket
|
||||||
test('to test the property `dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket`', () async {
|
test('to test the property `dollarSpecialLeftSquareBracketPropertyPeriodNameRightSquareBracket`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,12 +6,12 @@ void main() {
|
|||||||
final instance = Tag();
|
final instance = Tag();
|
||||||
|
|
||||||
group(Tag, () {
|
group(Tag, () {
|
||||||
// int id (default value: null)
|
// int id
|
||||||
test('to test the property `id`', () async {
|
test('to test the property `id`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String name (default value: null)
|
// String name
|
||||||
test('to test the property `name`', () async {
|
test('to test the property `name`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,43 +6,43 @@ void main() {
|
|||||||
final instance = User();
|
final instance = User();
|
||||||
|
|
||||||
group(User, () {
|
group(User, () {
|
||||||
// int id (default value: null)
|
// int id
|
||||||
test('to test the property `id`', () async {
|
test('to test the property `id`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String username (default value: null)
|
// String username
|
||||||
test('to test the property `username`', () async {
|
test('to test the property `username`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String firstName (default value: null)
|
// String firstName
|
||||||
test('to test the property `firstName`', () async {
|
test('to test the property `firstName`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String lastName (default value: null)
|
// String lastName
|
||||||
test('to test the property `lastName`', () async {
|
test('to test the property `lastName`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String email (default value: null)
|
// String email
|
||||||
test('to test the property `email`', () async {
|
test('to test the property `email`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String password (default value: null)
|
// String password
|
||||||
test('to test the property `password`', () async {
|
test('to test the property `password`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// String phone (default value: null)
|
// String phone
|
||||||
test('to test the property `phone`', () async {
|
test('to test the property `phone`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// User Status
|
// User Status
|
||||||
// int userStatus (default value: null)
|
// int userStatus
|
||||||
test('to test the property `userStatus`', () async {
|
test('to test the property `userStatus`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**name** | **String** | Updated name of the pet | [optional]
|
|
||||||
**status** | **String** | Updated status 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)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject1
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**additionalMetadata** | **String** | Additional data to pass to server | [optional]
|
|
||||||
**file** | [**MultipartFile**](MultipartFile.md) | file to upload | [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)
|
|
||||||
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.0
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class InlineObject {
|
|
||||||
/// Returns a new [InlineObject] instance.
|
|
||||||
InlineObject({
|
|
||||||
this.name,
|
|
||||||
this.status,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// Updated name of the pet
|
|
||||||
String name;
|
|
||||||
|
|
||||||
/// Updated status of the pet
|
|
||||||
String status;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is InlineObject &&
|
|
||||||
other.name == name &&
|
|
||||||
other.status == status;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
(name == null ? 0 : name.hashCode) +
|
|
||||||
(status == null ? 0 : status.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'InlineObject[name=$name, status=$status]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (name != null) {
|
|
||||||
json[r'name'] = name;
|
|
||||||
}
|
|
||||||
if (status != null) {
|
|
||||||
json[r'status'] = status;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [InlineObject] instance and imports its values from
|
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
|
||||||
static InlineObject fromJson(Map<String, dynamic> json) => json == null
|
|
||||||
? null
|
|
||||||
: InlineObject(
|
|
||||||
name: json[r'name'],
|
|
||||||
status: json[r'status'],
|
|
||||||
);
|
|
||||||
|
|
||||||
static List<InlineObject> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <InlineObject>[]
|
|
||||||
: json.map((v) => InlineObject.fromJson(v)).toList(growable: true == growable);
|
|
||||||
|
|
||||||
static Map<String, InlineObject> mapFromJson(Map<String, dynamic> json) {
|
|
||||||
final map = <String, InlineObject>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) => map[key] = InlineObject.fromJson(v));
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of InlineObject-objects as value to a dart map
|
|
||||||
static Map<String, List<InlineObject>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
|
||||||
final map = <String, List<InlineObject>>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) {
|
|
||||||
map[key] = InlineObject.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.0
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class InlineObject1 {
|
|
||||||
/// Returns a new [InlineObject1] instance.
|
|
||||||
InlineObject1({
|
|
||||||
this.additionalMetadata,
|
|
||||||
this.file,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// Additional data to pass to server
|
|
||||||
String additionalMetadata;
|
|
||||||
|
|
||||||
/// file to upload
|
|
||||||
MultipartFile file;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is InlineObject1 &&
|
|
||||||
other.additionalMetadata == additionalMetadata &&
|
|
||||||
other.file == file;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
(additionalMetadata == null ? 0 : additionalMetadata.hashCode) +
|
|
||||||
(file == null ? 0 : file.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'InlineObject1[additionalMetadata=$additionalMetadata, file=$file]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (additionalMetadata != null) {
|
|
||||||
json[r'additionalMetadata'] = additionalMetadata;
|
|
||||||
}
|
|
||||||
if (file != null) {
|
|
||||||
json[r'file'] = file;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [InlineObject1] instance and imports its values from
|
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
|
||||||
static InlineObject1 fromJson(Map<String, dynamic> json) => json == null
|
|
||||||
? null
|
|
||||||
: InlineObject1(
|
|
||||||
additionalMetadata: json[r'additionalMetadata'],
|
|
||||||
file: null, // No support for decoding binary content from JSON
|
|
||||||
);
|
|
||||||
|
|
||||||
static List<InlineObject1> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <InlineObject1>[]
|
|
||||||
: json.map((v) => InlineObject1.fromJson(v)).toList(growable: true == growable);
|
|
||||||
|
|
||||||
static Map<String, InlineObject1> mapFromJson(Map<String, dynamic> json) {
|
|
||||||
final map = <String, InlineObject1>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) => map[key] = InlineObject1.fromJson(v));
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of InlineObject1-objects as value to a dart map
|
|
||||||
static Map<String, List<InlineObject1>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
|
||||||
final map = <String, List<InlineObject1>>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) {
|
|
||||||
map[key] = InlineObject1.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**name** | **String** | Updated name of the pet | [optional]
|
|
||||||
**status** | **String** | Updated status 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)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject1
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**additionalMetadata** | **String** | Additional data to pass to server | [optional]
|
|
||||||
**file** | [**MultipartFile**](MultipartFile.md) | file to upload | [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)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject2
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**enumFormStringArray** | **List<String>** | Form parameter enum test (string array) | [optional] [default to const []]
|
|
||||||
**enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to '-efg']
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
|||||||
# openapi.model.InlineObject3
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**integer** | **int** | None | [optional]
|
|
||||||
**int32** | **int** | None | [optional]
|
|
||||||
**int64** | **int** | None | [optional]
|
|
||||||
**number** | **num** | None |
|
|
||||||
**float** | **double** | None | [optional]
|
|
||||||
**double_** | **double** | None |
|
|
||||||
**string** | **String** | None | [optional]
|
|
||||||
**patternWithoutDelimiter** | **String** | None |
|
|
||||||
**byte** | **String** | None |
|
|
||||||
**binary** | [**MultipartFile**](MultipartFile.md) | None | [optional]
|
|
||||||
**date** | [**DateTime**](DateTime.md) | None | [optional]
|
|
||||||
**dateTime** | [**DateTime**](DateTime.md) | None | [optional]
|
|
||||||
**password** | **String** | None | [optional]
|
|
||||||
**callback** | **String** | None | [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)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject4
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**param** | **String** | field1 |
|
|
||||||
**param2** | **String** | field2 |
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,16 +0,0 @@
|
|||||||
# openapi.model.InlineObject5
|
|
||||||
|
|
||||||
## Load the model package
|
|
||||||
```dart
|
|
||||||
import 'package:openapi/api.dart';
|
|
||||||
```
|
|
||||||
|
|
||||||
## Properties
|
|
||||||
Name | Type | Description | Notes
|
|
||||||
------------ | ------------- | ------------- | -------------
|
|
||||||
**additionalMetadata** | **String** | Additional data to pass to server | [optional]
|
|
||||||
**requiredFile** | [**MultipartFile**](MultipartFile.md) | file to upload |
|
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
||||||
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.0
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class InlineObject {
|
|
||||||
/// Returns a new [InlineObject] instance.
|
|
||||||
InlineObject({
|
|
||||||
this.name,
|
|
||||||
this.status,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// Updated name of the pet
|
|
||||||
String name;
|
|
||||||
|
|
||||||
/// Updated status of the pet
|
|
||||||
String status;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is InlineObject &&
|
|
||||||
other.name == name &&
|
|
||||||
other.status == status;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
(name == null ? 0 : name.hashCode) +
|
|
||||||
(status == null ? 0 : status.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'InlineObject[name=$name, status=$status]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (name != null) {
|
|
||||||
json[r'name'] = name;
|
|
||||||
}
|
|
||||||
if (status != null) {
|
|
||||||
json[r'status'] = status;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [InlineObject] instance and imports its values from
|
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
|
||||||
static InlineObject fromJson(Map<String, dynamic> json) => json == null
|
|
||||||
? null
|
|
||||||
: InlineObject(
|
|
||||||
name: json[r'name'],
|
|
||||||
status: json[r'status'],
|
|
||||||
);
|
|
||||||
|
|
||||||
static List<InlineObject> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <InlineObject>[]
|
|
||||||
: json.map((v) => InlineObject.fromJson(v)).toList(growable: true == growable);
|
|
||||||
|
|
||||||
static Map<String, InlineObject> mapFromJson(Map<String, dynamic> json) {
|
|
||||||
final map = <String, InlineObject>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) => map[key] = InlineObject.fromJson(v));
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of InlineObject-objects as value to a dart map
|
|
||||||
static Map<String, List<InlineObject>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
|
||||||
final map = <String, List<InlineObject>>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) {
|
|
||||||
map[key] = InlineObject.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.0
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class InlineObject1 {
|
|
||||||
/// Returns a new [InlineObject1] instance.
|
|
||||||
InlineObject1({
|
|
||||||
this.additionalMetadata,
|
|
||||||
this.file,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// Additional data to pass to server
|
|
||||||
String additionalMetadata;
|
|
||||||
|
|
||||||
/// file to upload
|
|
||||||
MultipartFile file;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is InlineObject1 &&
|
|
||||||
other.additionalMetadata == additionalMetadata &&
|
|
||||||
other.file == file;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
(additionalMetadata == null ? 0 : additionalMetadata.hashCode) +
|
|
||||||
(file == null ? 0 : file.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'InlineObject1[additionalMetadata=$additionalMetadata, file=$file]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (additionalMetadata != null) {
|
|
||||||
json[r'additionalMetadata'] = additionalMetadata;
|
|
||||||
}
|
|
||||||
if (file != null) {
|
|
||||||
json[r'file'] = file;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [InlineObject1] instance and imports its values from
|
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
|
||||||
static InlineObject1 fromJson(Map<String, dynamic> json) => json == null
|
|
||||||
? null
|
|
||||||
: InlineObject1(
|
|
||||||
additionalMetadata: json[r'additionalMetadata'],
|
|
||||||
file: null, // No support for decoding binary content from JSON
|
|
||||||
);
|
|
||||||
|
|
||||||
static List<InlineObject1> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <InlineObject1>[]
|
|
||||||
: json.map((v) => InlineObject1.fromJson(v)).toList(growable: true == growable);
|
|
||||||
|
|
||||||
static Map<String, InlineObject1> mapFromJson(Map<String, dynamic> json) {
|
|
||||||
final map = <String, InlineObject1>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) => map[key] = InlineObject1.fromJson(v));
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of InlineObject1-objects as value to a dart map
|
|
||||||
static Map<String, List<InlineObject1>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
|
||||||
final map = <String, List<InlineObject1>>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) {
|
|
||||||
map[key] = InlineObject1.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,231 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.0
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class InlineObject2 {
|
|
||||||
/// Returns a new [InlineObject2] instance.
|
|
||||||
InlineObject2({
|
|
||||||
this.enumFormStringArray = const [],
|
|
||||||
this.enumFormString = const InlineObject2EnumFormStringEnum._('-efg'),
|
|
||||||
});
|
|
||||||
|
|
||||||
/// Form parameter enum test (string array)
|
|
||||||
List<InlineObject2EnumFormStringArrayEnum> enumFormStringArray;
|
|
||||||
|
|
||||||
/// Form parameter enum test (string)
|
|
||||||
InlineObject2EnumFormStringEnum enumFormString;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is InlineObject2 &&
|
|
||||||
other.enumFormStringArray == enumFormStringArray &&
|
|
||||||
other.enumFormString == enumFormString;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
(enumFormStringArray == null ? 0 : enumFormStringArray.hashCode) +
|
|
||||||
(enumFormString == null ? 0 : enumFormString.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'InlineObject2[enumFormStringArray=$enumFormStringArray, enumFormString=$enumFormString]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (enumFormStringArray != null) {
|
|
||||||
json[r'enum_form_string_array'] = enumFormStringArray;
|
|
||||||
}
|
|
||||||
if (enumFormString != null) {
|
|
||||||
json[r'enum_form_string'] = enumFormString;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [InlineObject2] instance and imports its values from
|
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
|
||||||
static InlineObject2 fromJson(Map<String, dynamic> json) => json == null
|
|
||||||
? null
|
|
||||||
: InlineObject2(
|
|
||||||
enumFormStringArray: InlineObject2EnumFormStringArrayEnum.listFromJson(json[r'enum_form_string_array']),
|
|
||||||
enumFormString: InlineObject2EnumFormStringEnum.fromJson(json[r'enum_form_string']),
|
|
||||||
);
|
|
||||||
|
|
||||||
static List<InlineObject2> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <InlineObject2>[]
|
|
||||||
: json.map((v) => InlineObject2.fromJson(v)).toList(growable: true == growable);
|
|
||||||
|
|
||||||
static Map<String, InlineObject2> mapFromJson(Map<String, dynamic> json) {
|
|
||||||
final map = <String, InlineObject2>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) => map[key] = InlineObject2.fromJson(v));
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of InlineObject2-objects as value to a dart map
|
|
||||||
static Map<String, List<InlineObject2>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
|
||||||
final map = <String, List<InlineObject2>>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) {
|
|
||||||
map[key] = InlineObject2.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class InlineObject2EnumFormStringArrayEnum {
|
|
||||||
/// Instantiate a new enum with the provided [value].
|
|
||||||
const InlineObject2EnumFormStringArrayEnum._(this.value);
|
|
||||||
|
|
||||||
/// The underlying value of this enum member.
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) ||
|
|
||||||
other is InlineObject2EnumFormStringArrayEnum && other.value == value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => toString().hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => value;
|
|
||||||
|
|
||||||
String toJson() => value;
|
|
||||||
|
|
||||||
static const greaterThan = InlineObject2EnumFormStringArrayEnum._(r'>');
|
|
||||||
static const dollar = InlineObject2EnumFormStringArrayEnum._(r'$');
|
|
||||||
|
|
||||||
/// List of all possible values in this [enum][InlineObject2EnumFormStringArrayEnum].
|
|
||||||
static const values = <InlineObject2EnumFormStringArrayEnum>[
|
|
||||||
greaterThan,
|
|
||||||
dollar,
|
|
||||||
];
|
|
||||||
|
|
||||||
static InlineObject2EnumFormStringArrayEnum fromJson(dynamic value) =>
|
|
||||||
InlineObject2EnumFormStringArrayEnumTypeTransformer().decode(value);
|
|
||||||
|
|
||||||
static List<InlineObject2EnumFormStringArrayEnum> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <InlineObject2EnumFormStringArrayEnum>[]
|
|
||||||
: json
|
|
||||||
.map((value) => InlineObject2EnumFormStringArrayEnum.fromJson(value))
|
|
||||||
.toList(growable: true == growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Transformation class that can [encode] an instance of [InlineObject2EnumFormStringArrayEnum] to String,
|
|
||||||
/// and [decode] dynamic data back to [InlineObject2EnumFormStringArrayEnum].
|
|
||||||
class InlineObject2EnumFormStringArrayEnumTypeTransformer {
|
|
||||||
const InlineObject2EnumFormStringArrayEnumTypeTransformer._();
|
|
||||||
|
|
||||||
factory InlineObject2EnumFormStringArrayEnumTypeTransformer() => _instance ??= InlineObject2EnumFormStringArrayEnumTypeTransformer._();
|
|
||||||
|
|
||||||
String encode(InlineObject2EnumFormStringArrayEnum data) => data.value;
|
|
||||||
|
|
||||||
/// Decodes a [dynamic value][data] to a InlineObject2EnumFormStringArrayEnum.
|
|
||||||
///
|
|
||||||
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
|
||||||
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
|
||||||
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
|
||||||
///
|
|
||||||
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
|
||||||
/// and users are still using an old app with the old code.
|
|
||||||
InlineObject2EnumFormStringArrayEnum decode(dynamic data, {bool allowNull}) {
|
|
||||||
switch (data) {
|
|
||||||
case r'>': return InlineObject2EnumFormStringArrayEnum.greaterThan;
|
|
||||||
case r'$': return InlineObject2EnumFormStringArrayEnum.dollar;
|
|
||||||
default:
|
|
||||||
if (allowNull == false) {
|
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Singleton [InlineObject2EnumFormStringArrayEnumTypeTransformer] instance.
|
|
||||||
static InlineObject2EnumFormStringArrayEnumTypeTransformer _instance;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Form parameter enum test (string)
|
|
||||||
class InlineObject2EnumFormStringEnum {
|
|
||||||
/// Instantiate a new enum with the provided [value].
|
|
||||||
const InlineObject2EnumFormStringEnum._(this.value);
|
|
||||||
|
|
||||||
/// The underlying value of this enum member.
|
|
||||||
final String value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) ||
|
|
||||||
other is InlineObject2EnumFormStringEnum && other.value == value;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode => toString().hashCode;
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => value;
|
|
||||||
|
|
||||||
String toJson() => value;
|
|
||||||
|
|
||||||
static const abc = InlineObject2EnumFormStringEnum._(r'_abc');
|
|
||||||
static const efg = InlineObject2EnumFormStringEnum._(r'-efg');
|
|
||||||
static const leftParenthesisXyzRightParenthesis = InlineObject2EnumFormStringEnum._(r'(xyz)');
|
|
||||||
|
|
||||||
/// List of all possible values in this [enum][InlineObject2EnumFormStringEnum].
|
|
||||||
static const values = <InlineObject2EnumFormStringEnum>[
|
|
||||||
abc,
|
|
||||||
efg,
|
|
||||||
leftParenthesisXyzRightParenthesis,
|
|
||||||
];
|
|
||||||
|
|
||||||
static InlineObject2EnumFormStringEnum fromJson(dynamic value) =>
|
|
||||||
InlineObject2EnumFormStringEnumTypeTransformer().decode(value);
|
|
||||||
|
|
||||||
static List<InlineObject2EnumFormStringEnum> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <InlineObject2EnumFormStringEnum>[]
|
|
||||||
: json
|
|
||||||
.map((value) => InlineObject2EnumFormStringEnum.fromJson(value))
|
|
||||||
.toList(growable: true == growable);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Transformation class that can [encode] an instance of [InlineObject2EnumFormStringEnum] to String,
|
|
||||||
/// and [decode] dynamic data back to [InlineObject2EnumFormStringEnum].
|
|
||||||
class InlineObject2EnumFormStringEnumTypeTransformer {
|
|
||||||
const InlineObject2EnumFormStringEnumTypeTransformer._();
|
|
||||||
|
|
||||||
factory InlineObject2EnumFormStringEnumTypeTransformer() => _instance ??= InlineObject2EnumFormStringEnumTypeTransformer._();
|
|
||||||
|
|
||||||
String encode(InlineObject2EnumFormStringEnum data) => data.value;
|
|
||||||
|
|
||||||
/// Decodes a [dynamic value][data] to a InlineObject2EnumFormStringEnum.
|
|
||||||
///
|
|
||||||
/// If [allowNull] is true and the [dynamic value][data] cannot be decoded successfully,
|
|
||||||
/// then null is returned. However, if [allowNull] is false and the [dynamic value][data]
|
|
||||||
/// cannot be decoded successfully, then an [UnimplementedError] is thrown.
|
|
||||||
///
|
|
||||||
/// The [allowNull] is very handy when an API changes and a new enum value is added or removed,
|
|
||||||
/// and users are still using an old app with the old code.
|
|
||||||
InlineObject2EnumFormStringEnum decode(dynamic data, {bool allowNull}) {
|
|
||||||
switch (data) {
|
|
||||||
case r'_abc': return InlineObject2EnumFormStringEnum.abc;
|
|
||||||
case r'-efg': return InlineObject2EnumFormStringEnum.efg;
|
|
||||||
case r'(xyz)': return InlineObject2EnumFormStringEnum.leftParenthesisXyzRightParenthesis;
|
|
||||||
default:
|
|
||||||
if (allowNull == false) {
|
|
||||||
throw ArgumentError('Unknown enum value to decode: $data');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Singleton [InlineObject2EnumFormStringEnumTypeTransformer] instance.
|
|
||||||
static InlineObject2EnumFormStringEnumTypeTransformer _instance;
|
|
||||||
}
|
|
||||||
|
|
@ -1,217 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.0
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class InlineObject3 {
|
|
||||||
/// Returns a new [InlineObject3] instance.
|
|
||||||
InlineObject3({
|
|
||||||
this.integer,
|
|
||||||
this.int32,
|
|
||||||
this.int64,
|
|
||||||
@required this.number,
|
|
||||||
this.float,
|
|
||||||
@required this.double_,
|
|
||||||
this.string,
|
|
||||||
@required this.patternWithoutDelimiter,
|
|
||||||
@required this.byte,
|
|
||||||
this.binary,
|
|
||||||
this.date,
|
|
||||||
this.dateTime,
|
|
||||||
this.password,
|
|
||||||
this.callback,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// None
|
|
||||||
// minimum: 10
|
|
||||||
// maximum: 100
|
|
||||||
int integer;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
// minimum: 20
|
|
||||||
// maximum: 200
|
|
||||||
int int32;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
int int64;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
// minimum: 32.1
|
|
||||||
// maximum: 543.2
|
|
||||||
num number;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
// maximum: 987.6
|
|
||||||
double float;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
// minimum: 67.8
|
|
||||||
// maximum: 123.4
|
|
||||||
double double_;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
String string;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
String patternWithoutDelimiter;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
String byte;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
MultipartFile binary;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
DateTime date;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
DateTime dateTime;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
String password;
|
|
||||||
|
|
||||||
/// None
|
|
||||||
String callback;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is InlineObject3 &&
|
|
||||||
other.integer == integer &&
|
|
||||||
other.int32 == int32 &&
|
|
||||||
other.int64 == int64 &&
|
|
||||||
other.number == number &&
|
|
||||||
other.float == float &&
|
|
||||||
other.double_ == double_ &&
|
|
||||||
other.string == string &&
|
|
||||||
other.patternWithoutDelimiter == patternWithoutDelimiter &&
|
|
||||||
other.byte == byte &&
|
|
||||||
other.binary == binary &&
|
|
||||||
other.date == date &&
|
|
||||||
other.dateTime == dateTime &&
|
|
||||||
other.password == password &&
|
|
||||||
other.callback == callback;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
(integer == null ? 0 : integer.hashCode) +
|
|
||||||
(int32 == null ? 0 : int32.hashCode) +
|
|
||||||
(int64 == null ? 0 : int64.hashCode) +
|
|
||||||
(number == null ? 0 : number.hashCode) +
|
|
||||||
(float == null ? 0 : float.hashCode) +
|
|
||||||
(double_ == null ? 0 : double_.hashCode) +
|
|
||||||
(string == null ? 0 : string.hashCode) +
|
|
||||||
(patternWithoutDelimiter == null ? 0 : patternWithoutDelimiter.hashCode) +
|
|
||||||
(byte == null ? 0 : byte.hashCode) +
|
|
||||||
(binary == null ? 0 : binary.hashCode) +
|
|
||||||
(date == null ? 0 : date.hashCode) +
|
|
||||||
(dateTime == null ? 0 : dateTime.hashCode) +
|
|
||||||
(password == null ? 0 : password.hashCode) +
|
|
||||||
(callback == null ? 0 : callback.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'InlineObject3[integer=$integer, int32=$int32, int64=$int64, number=$number, float=$float, double_=$double_, string=$string, patternWithoutDelimiter=$patternWithoutDelimiter, byte=$byte, binary=$binary, date=$date, dateTime=$dateTime, password=$password, callback=$callback]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (integer != null) {
|
|
||||||
json[r'integer'] = integer;
|
|
||||||
}
|
|
||||||
if (int32 != null) {
|
|
||||||
json[r'int32'] = int32;
|
|
||||||
}
|
|
||||||
if (int64 != null) {
|
|
||||||
json[r'int64'] = int64;
|
|
||||||
}
|
|
||||||
if (number != null) {
|
|
||||||
json[r'number'] = number;
|
|
||||||
}
|
|
||||||
if (float != null) {
|
|
||||||
json[r'float'] = float;
|
|
||||||
}
|
|
||||||
if (double_ != null) {
|
|
||||||
json[r'double'] = double_;
|
|
||||||
}
|
|
||||||
if (string != null) {
|
|
||||||
json[r'string'] = string;
|
|
||||||
}
|
|
||||||
if (patternWithoutDelimiter != null) {
|
|
||||||
json[r'pattern_without_delimiter'] = patternWithoutDelimiter;
|
|
||||||
}
|
|
||||||
if (byte != null) {
|
|
||||||
json[r'byte'] = byte;
|
|
||||||
}
|
|
||||||
if (binary != null) {
|
|
||||||
json[r'binary'] = binary;
|
|
||||||
}
|
|
||||||
if (date != null) {
|
|
||||||
json[r'date'] = _dateFormatter.format(date.toUtc());
|
|
||||||
}
|
|
||||||
if (dateTime != null) {
|
|
||||||
json[r'dateTime'] = dateTime.toUtc().toIso8601String();
|
|
||||||
}
|
|
||||||
if (password != null) {
|
|
||||||
json[r'password'] = password;
|
|
||||||
}
|
|
||||||
if (callback != null) {
|
|
||||||
json[r'callback'] = callback;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [InlineObject3] instance and imports its values from
|
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
|
||||||
static InlineObject3 fromJson(Map<String, dynamic> json) => json == null
|
|
||||||
? null
|
|
||||||
: InlineObject3(
|
|
||||||
integer: json[r'integer'],
|
|
||||||
int32: json[r'int32'],
|
|
||||||
int64: json[r'int64'],
|
|
||||||
number: json[r'number'] == null ?
|
|
||||||
null :
|
|
||||||
json[r'number'].toDouble(),
|
|
||||||
float: json[r'float'],
|
|
||||||
double_: json[r'double'],
|
|
||||||
string: json[r'string'],
|
|
||||||
patternWithoutDelimiter: json[r'pattern_without_delimiter'],
|
|
||||||
byte: json[r'byte'],
|
|
||||||
binary: null, // No support for decoding binary content from JSON
|
|
||||||
date: json[r'date'] == null
|
|
||||||
? null
|
|
||||||
: DateTime.parse(json[r'date']),
|
|
||||||
dateTime: json[r'dateTime'] == null
|
|
||||||
? null
|
|
||||||
: DateTime.parse(json[r'dateTime']),
|
|
||||||
password: json[r'password'],
|
|
||||||
callback: json[r'callback'],
|
|
||||||
);
|
|
||||||
|
|
||||||
static List<InlineObject3> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <InlineObject3>[]
|
|
||||||
: json.map((v) => InlineObject3.fromJson(v)).toList(growable: true == growable);
|
|
||||||
|
|
||||||
static Map<String, InlineObject3> mapFromJson(Map<String, dynamic> json) {
|
|
||||||
final map = <String, InlineObject3>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) => map[key] = InlineObject3.fromJson(v));
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of InlineObject3-objects as value to a dart map
|
|
||||||
static Map<String, List<InlineObject3>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
|
||||||
final map = <String, List<InlineObject3>>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) {
|
|
||||||
map[key] = InlineObject3.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.0
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class InlineObject4 {
|
|
||||||
/// Returns a new [InlineObject4] instance.
|
|
||||||
InlineObject4({
|
|
||||||
@required this.param,
|
|
||||||
@required this.param2,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// field1
|
|
||||||
String param;
|
|
||||||
|
|
||||||
/// field2
|
|
||||||
String param2;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is InlineObject4 &&
|
|
||||||
other.param == param &&
|
|
||||||
other.param2 == param2;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
(param == null ? 0 : param.hashCode) +
|
|
||||||
(param2 == null ? 0 : param2.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'InlineObject4[param=$param, param2=$param2]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (param != null) {
|
|
||||||
json[r'param'] = param;
|
|
||||||
}
|
|
||||||
if (param2 != null) {
|
|
||||||
json[r'param2'] = param2;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [InlineObject4] instance and imports its values from
|
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
|
||||||
static InlineObject4 fromJson(Map<String, dynamic> json) => json == null
|
|
||||||
? null
|
|
||||||
: InlineObject4(
|
|
||||||
param: json[r'param'],
|
|
||||||
param2: json[r'param2'],
|
|
||||||
);
|
|
||||||
|
|
||||||
static List<InlineObject4> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <InlineObject4>[]
|
|
||||||
: json.map((v) => InlineObject4.fromJson(v)).toList(growable: true == growable);
|
|
||||||
|
|
||||||
static Map<String, InlineObject4> mapFromJson(Map<String, dynamic> json) {
|
|
||||||
final map = <String, InlineObject4>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) => map[key] = InlineObject4.fromJson(v));
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of InlineObject4-objects as value to a dart map
|
|
||||||
static Map<String, List<InlineObject4>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
|
||||||
final map = <String, List<InlineObject4>>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) {
|
|
||||||
map[key] = InlineObject4.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,82 +0,0 @@
|
|||||||
//
|
|
||||||
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
||||||
//
|
|
||||||
// @dart=2.0
|
|
||||||
|
|
||||||
// ignore_for_file: unused_element, unused_import
|
|
||||||
// ignore_for_file: always_put_required_named_parameters_first
|
|
||||||
// ignore_for_file: lines_longer_than_80_chars
|
|
||||||
|
|
||||||
part of openapi.api;
|
|
||||||
|
|
||||||
class InlineObject5 {
|
|
||||||
/// Returns a new [InlineObject5] instance.
|
|
||||||
InlineObject5({
|
|
||||||
this.additionalMetadata,
|
|
||||||
@required this.requiredFile,
|
|
||||||
});
|
|
||||||
|
|
||||||
/// Additional data to pass to server
|
|
||||||
String additionalMetadata;
|
|
||||||
|
|
||||||
/// file to upload
|
|
||||||
MultipartFile requiredFile;
|
|
||||||
|
|
||||||
@override
|
|
||||||
bool operator ==(Object other) => identical(this, other) || other is InlineObject5 &&
|
|
||||||
other.additionalMetadata == additionalMetadata &&
|
|
||||||
other.requiredFile == requiredFile;
|
|
||||||
|
|
||||||
@override
|
|
||||||
int get hashCode =>
|
|
||||||
(additionalMetadata == null ? 0 : additionalMetadata.hashCode) +
|
|
||||||
(requiredFile == null ? 0 : requiredFile.hashCode);
|
|
||||||
|
|
||||||
@override
|
|
||||||
String toString() => 'InlineObject5[additionalMetadata=$additionalMetadata, requiredFile=$requiredFile]';
|
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
|
||||||
final json = <String, dynamic>{};
|
|
||||||
if (additionalMetadata != null) {
|
|
||||||
json[r'additionalMetadata'] = additionalMetadata;
|
|
||||||
}
|
|
||||||
if (requiredFile != null) {
|
|
||||||
json[r'requiredFile'] = requiredFile;
|
|
||||||
}
|
|
||||||
return json;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Returns a new [InlineObject5] instance and imports its values from
|
|
||||||
/// [json] if it's non-null, null if [json] is null.
|
|
||||||
static InlineObject5 fromJson(Map<String, dynamic> json) => json == null
|
|
||||||
? null
|
|
||||||
: InlineObject5(
|
|
||||||
additionalMetadata: json[r'additionalMetadata'],
|
|
||||||
requiredFile: null, // No support for decoding binary content from JSON
|
|
||||||
);
|
|
||||||
|
|
||||||
static List<InlineObject5> listFromJson(List<dynamic> json, {bool emptyIsNull, bool growable,}) =>
|
|
||||||
json == null || json.isEmpty
|
|
||||||
? true == emptyIsNull ? null : <InlineObject5>[]
|
|
||||||
: json.map((v) => InlineObject5.fromJson(v)).toList(growable: true == growable);
|
|
||||||
|
|
||||||
static Map<String, InlineObject5> mapFromJson(Map<String, dynamic> json) {
|
|
||||||
final map = <String, InlineObject5>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) => map[key] = InlineObject5.fromJson(v));
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
// maps a json object with a list of InlineObject5-objects as value to a dart map
|
|
||||||
static Map<String, List<InlineObject5>> mapListFromJson(Map<String, dynamic> json, {bool emptyIsNull, bool growable,}) {
|
|
||||||
final map = <String, List<InlineObject5>>{};
|
|
||||||
if (json != null && json.isNotEmpty) {
|
|
||||||
json.forEach((String key, dynamic v) {
|
|
||||||
map[key] = InlineObject5.listFromJson(v, emptyIsNull: emptyIsNull, growable: growable);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -20,7 +20,7 @@ void main() {
|
|||||||
//
|
//
|
||||||
// To test special tags and operation ID starting with number
|
// To test special tags and operation ID starting with number
|
||||||
//
|
//
|
||||||
//Future<Client> call123testSpecialTags(Client client) async
|
//Future<ModelClient> call123testSpecialTags(ModelClient modelClient) async
|
||||||
test('test call123testSpecialTags', () async {
|
test('test call123testSpecialTags', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -74,7 +74,7 @@ void main() {
|
|||||||
//
|
//
|
||||||
// To test \"client\" model
|
// To test \"client\" model
|
||||||
//
|
//
|
||||||
//Future<Client> testClientModel(Client client) async
|
//Future<ModelClient> testClientModel(ModelClient modelClient) async
|
||||||
test('test testClientModel', () async {
|
test('test testClientModel', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -20,7 +20,7 @@ void main() {
|
|||||||
//
|
//
|
||||||
// To test class name in snake case
|
// To test class name in snake case
|
||||||
//
|
//
|
||||||
//Future<Client> testClassname(Client client) async
|
//Future<ModelClient> testClassname(ModelClient modelClient) async
|
||||||
test('test testClassname', () async {
|
test('test testClassname', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
@ -6,12 +6,12 @@ void main() {
|
|||||||
final instance = FileSchemaTestClass();
|
final instance = FileSchemaTestClass();
|
||||||
|
|
||||||
group('test FileSchemaTestClass', () {
|
group('test FileSchemaTestClass', () {
|
||||||
// MultipartFile file
|
// ModelFile file
|
||||||
test('to test the property `file`', () async {
|
test('to test the property `file`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// List<MultipartFile> files (default value: const [])
|
// List<ModelFile> files (default value: const [])
|
||||||
test('to test the property `files`', () async {
|
test('to test the property `files`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user