17 this.collectionVoucher,
31 ? DateTime.tryParse(json[
'collectionDate'])
34 ? (json[
'collectionVoucher'] as List)
47 ? DateTime.tryParse(json[
'unloadingDate'])
54 final data = <
String, dynamic>{};
59 data[
'collectionVoucher'] =
65 data[
'driver'] =
driver!.toJson();
108 Map<String, dynamic>
toJson() => {
132 this.partnerLatitude,
133 this.partnerLongitude,
137 factory
Partner.fromJson(Map<String, dynamic> json) {
167 final Map<String, dynamic> decoded =
168 json.decode(jsonStr) as Map<String, dynamic>;
169 return LocalizedString(decoded.map((k, v) => MapEntry(k, v.toString())));
final LocalizedString productName
DeliveryVoucherDocument({ this.collectionDate, this.collectionVoucher, this.containerNumber, this.containerType, this.driver, this.id, this.productName, this.reference, this.unloadingDate, this.vehiclePlate, })
final String containerNumber
final String vehiclePlate
final String containerType
Map< String, dynamic > toJson()
final DateTime unloadingDate
final List< CollectionVoucher > collectionVoucher
final DateTime collectionDate
Partner({ this.id, this.isCompany, this.name, this.parentId, this.partnerLatitude, this.partnerLongitude, this.street, })
factory Partner fromJson(Map< String, dynamic > json)
final String partnerLongitude
Partner({ required this.contactName, required this.id, required this.isCompany, required this.name, required this.parentId, required this.partnerLatitude, required this.partnerLongitude, required this.street, })
Map< String, dynamic > toJson()
final String partnerLatitude
Map< String, dynamic > toJson()
CollectionVoucher({ this.id, this.name, this.address, this.collectionPoint, this.contactPerson, this.generatorId, })
final String contactPerson
final String collectionPoint
String get(String locale)
LocalizedString(this.values)