//TODO : need to remove this class // import 'package:test_sa/models/lookup.dart'; // // class DemoAttachments { // int? id; // num? demoRequestId; // Lookup? documentType; // String? attachmentName; // String? originalName; // // DemoAttachments({this.id, this.documentType, this.attachmentName, this.demoRequestId, this.originalName}); // // DemoAttachments.fromJson(dynamic json) { // id = json['id']; // documentType = json['documentType'] != null ? Lookup.fromJson(json['documentType']) : null; // demoRequestId = json['demoRequestId']; // attachmentName = json['attachmentName']; // originalName = json['originalName']; // } // // Map toJson() { // final map = {}; // map['id'] = id; // if(documentType!=null){ // map['documentTypeId'] = documentType?.id; // } // map['attachmentName'] = attachmentName; // map['demoRequestId'] = demoRequestId; // map['originalName'] = originalName; // return map; // } // }