You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
//TODO: need to remove this class
|
|
|
|
|
// import 'package:test_sa/models/lookup.dart';
|
|
|
|
|
//
|
|
|
|
|
// class AssetTransferAttachment {
|
|
|
|
|
// AssetTransferAttachment({
|
|
|
|
|
// this.id,
|
|
|
|
|
// this.attachmentName,
|
|
|
|
|
// this.documentType,
|
|
|
|
|
//
|
|
|
|
|
// });
|
|
|
|
|
//
|
|
|
|
|
// AssetTransferAttachment.fromJson(dynamic json) {
|
|
|
|
|
// id = json['id'];
|
|
|
|
|
// attachmentName = json['attachmentName'];
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// num? id; // Now nullable
|
|
|
|
|
// String? attachmentName; // Now nullable
|
|
|
|
|
// Lookup ? documentType;
|
|
|
|
|
//
|
|
|
|
|
// AssetTransferAttachment copyWith({
|
|
|
|
|
// num? id, // Parameter is now nullable
|
|
|
|
|
// String? attachmentName, // Parameter is now nullable
|
|
|
|
|
// Lookup? documentType, // Parameter is now nullable
|
|
|
|
|
// }) =>
|
|
|
|
|
// AssetTransferAttachment(
|
|
|
|
|
// id: id ?? this.id,
|
|
|
|
|
// attachmentName: attachmentName ?? this.attachmentName,
|
|
|
|
|
// documentType: documentType ?? this.documentType,
|
|
|
|
|
// );
|
|
|
|
|
//
|
|
|
|
|
// Map<String, dynamic> toJson() {
|
|
|
|
|
// final map = <String, dynamic>{};
|
|
|
|
|
// map['id'] = id;
|
|
|
|
|
// map['attachmentName'] = attachmentName;
|
|
|
|
|
// map['documentTypeId'] = documentType?.id;
|
|
|
|
|
// return map;
|
|
|
|
|
// }
|
|
|
|
|
// }
|