1import '../../domain/entities/unloading_request_entity.dart';
2import 'collection_voucher_model.dart';
6 required super.warehouseResponsibleId,
7 required super.firstWeight,
9 required super.collectionVouchers,
15 firstWeight: (json[
'firstWeight'] as num).toDouble(),
16 userId: json[
'userId'] as
int,
18 .map((voucherJson) => CollectionVoucherModel.fromJson(voucherJson as Map<String, dynamic>))
29 .map((voucher) => (voucher as CollectionVoucherModel).
toJson())
UnloadingRequestEntity({ required this.warehouseResponsibleId, required this.firstWeight, required this.userId, required this.collectionVouchers, })
final List< CollectionVoucherEntity > collectionVouchers
final int warehouseResponsibleId
UnloadingRequestModel({ required super.warehouseResponsibleId, required super.firstWeight, required super.userId, required super.collectionVouchers, })
Map< String, dynamic > toJson()