import 'dart:io'; import 'package:test_sa/models/lookup.dart'; class GenericAttachmentModel { GenericAttachmentModel({this.id, this.name, this.originalName, this.createdBy,this.documentTypeId}); int? id; String? name; String? createdBy; String? originalName; Lookup? documentTypeId; GenericAttachmentModel.fromJson(Map json) { id = json['id']; name = json['name']; createdBy = json['createdBy']; originalName = json['originalName']; } Map toJson() { final Map data = {}; data['id'] = id; data['name'] = name; data['createdBy'] = createdBy; data['originalName'] = originalName; return data; } }