Removed unused imports and moved tour bloc to delivery to be shared by overview and detailed view
This commit is contained in:
@ -4,7 +4,6 @@ import 'article.dart';
|
||||
import 'contact_person.dart';
|
||||
import 'customer.dart';
|
||||
import 'discount.dart';
|
||||
import 'image.dart';
|
||||
import 'note.dart';
|
||||
import 'payment.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
import 'package:hl_lieferservice/model/delivery.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'delivery_update.g.dart';
|
||||
|
||||
@ -59,5 +59,6 @@ class DiscountAddResponseDTO extends BasicResponseDTO {
|
||||
factory DiscountAddResponseDTO.fromJson(Map<String, dynamic> json) =>
|
||||
_$DiscountAddResponseDTOFromJson(json);
|
||||
|
||||
@override
|
||||
Map<dynamic, dynamic> toJson() => _$DiscountAddResponseDTOToJson(this);
|
||||
}
|
||||
|
||||
@ -18,5 +18,6 @@ class DiscountRemoveResponseDTO extends BasicResponseDTO {
|
||||
factory DiscountRemoveResponseDTO.fromJson(Map<String, dynamic> json) =>
|
||||
_$DiscountRemoveResponseDTOFromJson(json);
|
||||
|
||||
@override
|
||||
Map<dynamic, dynamic> toJson() => _$DiscountRemoveResponseDTOToJson(this);
|
||||
}
|
||||
@ -1,4 +1,3 @@
|
||||
import 'package:hl_lieferservice/dto/article.dart';
|
||||
|
||||
import 'basic_response.dart';
|
||||
import 'discount_add_response.dart';
|
||||
@ -18,5 +17,6 @@ class DiscountUpdateResponseDTO extends BasicResponseDTO {
|
||||
factory DiscountUpdateResponseDTO.fromJson(Map<String, dynamic> json) =>
|
||||
_$DiscountUpdateResponseDTOFromJson(json);
|
||||
|
||||
@override
|
||||
Map<dynamic, dynamic> toJson() => _$DiscountUpdateResponseDTOToJson(this);
|
||||
}
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import 'note.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'image_note_response.g.dart';
|
||||
|
||||
@ -12,5 +12,6 @@ class NoteAddResponseDTO extends BasicResponseDTO {
|
||||
final NoteDTO? note;
|
||||
|
||||
factory NoteAddResponseDTO.fromJson(Map<String, dynamic> json) => _$NoteAddResponseDTOFromJson(json);
|
||||
@override
|
||||
Map<dynamic, dynamic> toJson() => _$NoteAddResponseDTOToJson(this);
|
||||
}
|
||||
Reference in New Issue
Block a user