Added new DTO for set article method
This commit is contained in:
25
lib/dto/set_article_amount_request.g.dart
Normal file
25
lib/dto/set_article_amount_request.g.dart
Normal file
@ -0,0 +1,25 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'set_article_amount_request.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
SetArticleAmountRequestDTO _$SetArticleAmountRequestDTOFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => SetArticleAmountRequestDTO(
|
||||
articleId: json['article_id'] as String,
|
||||
deliveryId: json['delivery_id'] as String,
|
||||
amount: (json['amount'] as num).toInt(),
|
||||
reason: json['reason'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$SetArticleAmountRequestDTOToJson(
|
||||
SetArticleAmountRequestDTO instance,
|
||||
) => <String, dynamic>{
|
||||
'delivery_id': instance.deliveryId,
|
||||
'amount': instance.amount,
|
||||
'article_id': instance.articleId,
|
||||
'reason': instance.reason,
|
||||
};
|
||||
23
lib/dto/set_article_amount_response.g.dart
Normal file
23
lib/dto/set_article_amount_response.g.dart
Normal file
@ -0,0 +1,23 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'set_article_amount_response.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
SetArticleAmountResponseDTO _$SetArticleAmountResponseDTOFromJson(
|
||||
Map<String, dynamic> json,
|
||||
) => SetArticleAmountResponseDTO(
|
||||
succeeded: json['succeeded'] as bool,
|
||||
message: json['message'] as String,
|
||||
noteId: json['note_id'] as String?,
|
||||
);
|
||||
|
||||
Map<String, dynamic> _$SetArticleAmountResponseDTOToJson(
|
||||
SetArticleAmountResponseDTO instance,
|
||||
) => <String, dynamic>{
|
||||
'succeeded': instance.succeeded,
|
||||
'message': instance.message,
|
||||
'note_id': instance.noteId,
|
||||
};
|
||||
Reference in New Issue
Block a user