Initial draft
This commit is contained in:
22
lib/dto/discount_update_response.dart
Normal file
22
lib/dto/discount_update_response.dart
Normal file
@ -0,0 +1,22 @@
|
||||
import 'package:hl_lieferservice/dto/article.dart';
|
||||
|
||||
import 'basic_response.dart';
|
||||
import 'discount_add_response.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'discount_update_response.g.dart';
|
||||
|
||||
@JsonSerializable(fieldRename: FieldRename.snake)
|
||||
class DiscountUpdateResponseDTO extends BasicResponseDTO {
|
||||
DiscountUpdateResponseDTO(
|
||||
{required this.values,
|
||||
required super.succeeded,
|
||||
required super.message});
|
||||
|
||||
UpdatedValues? values;
|
||||
|
||||
factory DiscountUpdateResponseDTO.fromJson(Map<String, dynamic> json) =>
|
||||
_$DiscountUpdateResponseDTOFromJson(json);
|
||||
|
||||
Map<dynamic, dynamic> toJson() => _$DiscountUpdateResponseDTOToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user