Implemented new set article mechanism for unscannable articles
This commit is contained in:
21
lib/dto/set_article_amount_response.dart
Normal file
21
lib/dto/set_article_amount_response.dart
Normal file
@ -0,0 +1,21 @@
|
||||
import 'package:hl_lieferservice/dto/basic_response.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'set_article_amount_response.g.dart';
|
||||
|
||||
@JsonSerializable(fieldRename: FieldRename.snake)
|
||||
class SetArticleAmountResponseDTO extends BasicResponseDTO {
|
||||
SetArticleAmountResponseDTO({
|
||||
required super.succeeded,
|
||||
required super.message,
|
||||
this.noteId
|
||||
});
|
||||
|
||||
String? noteId;
|
||||
|
||||
factory SetArticleAmountResponseDTO.fromJson(Map<String, dynamic> json) =>
|
||||
_$SetArticleAmountResponseDTOFromJson(json);
|
||||
|
||||
@override
|
||||
Map<dynamic, dynamic> toJson() => _$SetArticleAmountResponseDTOToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user