//TODO : need to remove this class.
// import 'dart:developer';
//
// import 'package:test_sa/models/lookup.dart';
//
// class InternalAuditAttachments {
//   InternalAuditAttachments({this.id, this.originalName, this.name, this.createdBy,this.documentType});
//
//   int? id;
//   String? name;
//   String? originalName;
//   String? createdBy;
//   Lookup ? documentType;
//
//   InternalAuditAttachments.fromJson(Map<String, dynamic> json) {
//     id = json['id'];
//     name = (json['name'] != null && !json['name'].toString().startsWith('data:image/jpeg')) ? json['name'] : null;
//     originalName = json['originalName'];
//     createdBy = json['createdBy'];
//     documentType =json['documentType'];
//   }
//
//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = <String, dynamic>{};
//     data['id'] = id;
//     data['name'] = name;
//     data['originalName'] = originalName;
//     data['documentTypeId'] = documentType?.id;
//     // data['createdBy'] = createdBy;
//     return data;
//   }
// }
