Initial draft
This commit is contained in:
15
lib/dto/discount_remove.dart
Normal file
15
lib/dto/discount_remove.dart
Normal file
@ -0,0 +1,15 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'discount_remove.g.dart';
|
||||
|
||||
@JsonSerializable(fieldRename: FieldRename.snake)
|
||||
class DiscountRemoveDTO {
|
||||
DiscountRemoveDTO(
|
||||
{required this.deliveryId});
|
||||
String deliveryId;
|
||||
|
||||
factory DiscountRemoveDTO.fromJson(Map<String, dynamic> json) =>
|
||||
_$DiscountRemoveDTOFromJson(json);
|
||||
|
||||
Map<dynamic, dynamic> toJson() => _$DiscountRemoveDTOToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user