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