Removed unneded generator serialization for my types
This commit is contained in:
parent
e34360aa09
commit
ebfafea617
1 changed files with 6 additions and 114 deletions
|
|
@ -268,27 +268,9 @@ class DefaultApi {
|
||||||
validateStatus: validateStatus,
|
validateStatus: validateStatus,
|
||||||
);
|
);
|
||||||
|
|
||||||
dynamic _bodyData;
|
|
||||||
|
|
||||||
try {
|
|
||||||
const _type = FullType(CreateUserDefinition);
|
|
||||||
_bodyData =
|
|
||||||
_serializers.serialize(createUserDefinition, specifiedType: _type);
|
|
||||||
} catch (error, stackTrace) {
|
|
||||||
throw DioError(
|
|
||||||
requestOptions: _options.compose(
|
|
||||||
_dio.options,
|
|
||||||
_path,
|
|
||||||
),
|
|
||||||
type: DioErrorType.unknown,
|
|
||||||
error: error,
|
|
||||||
stackTrace: stackTrace,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
final _response = await _dio.request<Object>(
|
final _response = await _dio.request<Object>(
|
||||||
_path,
|
_path,
|
||||||
data: _bodyData,
|
data: createUserDefinition,
|
||||||
options: _options,
|
options: _options,
|
||||||
cancelToken: cancelToken,
|
cancelToken: cancelToken,
|
||||||
onSendProgress: onSendProgress,
|
onSendProgress: onSendProgress,
|
||||||
|
|
@ -368,27 +350,9 @@ class DefaultApi {
|
||||||
validateStatus: validateStatus,
|
validateStatus: validateStatus,
|
||||||
);
|
);
|
||||||
|
|
||||||
dynamic _bodyData;
|
|
||||||
|
|
||||||
try {
|
|
||||||
const _type = FullType(List, [FullType(ColumnConditionCompat)]);
|
|
||||||
_bodyData =
|
|
||||||
_serializers.serialize(columnConditionCompat, specifiedType: _type);
|
|
||||||
} catch (error, stackTrace) {
|
|
||||||
throw DioError(
|
|
||||||
requestOptions: _options.compose(
|
|
||||||
_dio.options,
|
|
||||||
_path,
|
|
||||||
),
|
|
||||||
type: DioErrorType.unknown,
|
|
||||||
error: error,
|
|
||||||
stackTrace: stackTrace,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
final _response = await _dio.request<Object>(
|
final _response = await _dio.request<Object>(
|
||||||
_path,
|
_path,
|
||||||
data: _bodyData,
|
data: columnConditionCompat,
|
||||||
options: _options,
|
options: _options,
|
||||||
cancelToken: cancelToken,
|
cancelToken: cancelToken,
|
||||||
onSendProgress: onSendProgress,
|
onSendProgress: onSendProgress,
|
||||||
|
|
@ -540,26 +504,9 @@ class DefaultApi {
|
||||||
validateStatus: validateStatus,
|
validateStatus: validateStatus,
|
||||||
);
|
);
|
||||||
|
|
||||||
dynamic _bodyData;
|
|
||||||
|
|
||||||
try {
|
|
||||||
const _type = FullType(AuthModel);
|
|
||||||
_bodyData = _serializers.serialize(authModel, specifiedType: _type);
|
|
||||||
} catch (error, stackTrace) {
|
|
||||||
throw DioError(
|
|
||||||
requestOptions: _options.compose(
|
|
||||||
_dio.options,
|
|
||||||
_path,
|
|
||||||
),
|
|
||||||
type: DioErrorType.unknown,
|
|
||||||
error: error,
|
|
||||||
stackTrace: stackTrace,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
final _response = await _dio.request<Object>(
|
final _response = await _dio.request<Object>(
|
||||||
_path,
|
_path,
|
||||||
data: _bodyData,
|
data: authModel,
|
||||||
options: _options,
|
options: _options,
|
||||||
cancelToken: cancelToken,
|
cancelToken: cancelToken,
|
||||||
onSendProgress: onSendProgress,
|
onSendProgress: onSendProgress,
|
||||||
|
|
@ -696,29 +643,9 @@ class DefaultApi {
|
||||||
validateStatus: validateStatus,
|
validateStatus: validateStatus,
|
||||||
);
|
);
|
||||||
|
|
||||||
dynamic _bodyData;
|
|
||||||
|
|
||||||
try {
|
|
||||||
const _type = FullType(BodyGetItemsFromTableItemsTableNamePost);
|
|
||||||
_bodyData = bodyGetItemsFromTableItemsTableNamePost == null
|
|
||||||
? null
|
|
||||||
: _serializers.serialize(bodyGetItemsFromTableItemsTableNamePost,
|
|
||||||
specifiedType: _type);
|
|
||||||
} catch (error, stackTrace) {
|
|
||||||
throw DioError(
|
|
||||||
requestOptions: _options.compose(
|
|
||||||
_dio.options,
|
|
||||||
_path,
|
|
||||||
),
|
|
||||||
type: DioErrorType.unknown,
|
|
||||||
error: error,
|
|
||||||
stackTrace: stackTrace,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
final _response = await _dio.request<Object>(
|
final _response = await _dio.request<Object>(
|
||||||
_path,
|
_path,
|
||||||
data: _bodyData,
|
data: bodyGetItemsFromTableItemsTableNamePost,
|
||||||
options: _options,
|
options: _options,
|
||||||
cancelToken: cancelToken,
|
cancelToken: cancelToken,
|
||||||
onSendProgress: onSendProgress,
|
onSendProgress: onSendProgress,
|
||||||
|
|
@ -1231,26 +1158,9 @@ class DefaultApi {
|
||||||
validateStatus: validateStatus,
|
validateStatus: validateStatus,
|
||||||
);
|
);
|
||||||
|
|
||||||
dynamic _bodyData;
|
|
||||||
|
|
||||||
try {
|
|
||||||
const _type = FullType(BodyUpdateItemInTableItemsTableNamePost);
|
|
||||||
_bodyData = _serializers.serialize(body, specifiedType: _type);
|
|
||||||
} catch (error, stackTrace) {
|
|
||||||
throw DioError(
|
|
||||||
requestOptions: _options.compose(
|
|
||||||
_dio.options,
|
|
||||||
_path,
|
|
||||||
),
|
|
||||||
type: DioErrorType.unknown,
|
|
||||||
error: error,
|
|
||||||
stackTrace: stackTrace,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
final _response = await _dio.request<Object>(
|
final _response = await _dio.request<Object>(
|
||||||
_path,
|
_path,
|
||||||
data: _bodyData,
|
data: body,
|
||||||
options: _options,
|
options: _options,
|
||||||
cancelToken: cancelToken,
|
cancelToken: cancelToken,
|
||||||
onSendProgress: onSendProgress,
|
onSendProgress: onSendProgress,
|
||||||
|
|
@ -1327,27 +1237,9 @@ class DefaultApi {
|
||||||
validateStatus: validateStatus,
|
validateStatus: validateStatus,
|
||||||
);
|
);
|
||||||
|
|
||||||
dynamic _bodyData;
|
|
||||||
|
|
||||||
try {
|
|
||||||
const _type = FullType(UserUpdateDefinition);
|
|
||||||
_bodyData =
|
|
||||||
_serializers.serialize(userUpdateDefinition, specifiedType: _type);
|
|
||||||
} catch (error, stackTrace) {
|
|
||||||
throw DioError(
|
|
||||||
requestOptions: _options.compose(
|
|
||||||
_dio.options,
|
|
||||||
_path,
|
|
||||||
),
|
|
||||||
type: DioErrorType.unknown,
|
|
||||||
error: error,
|
|
||||||
stackTrace: stackTrace,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
final _response = await _dio.request<Object>(
|
final _response = await _dio.request<Object>(
|
||||||
_path,
|
_path,
|
||||||
data: _bodyData,
|
data: userUpdateDefinition,
|
||||||
options: _options,
|
options: _options,
|
||||||
cancelToken: cancelToken,
|
cancelToken: cancelToken,
|
||||||
onSendProgress: onSendProgress,
|
onSendProgress: onSendProgress,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue