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,
|
||||
};
|
||||
Reference in New Issue
Block a user