import 'package:test_sa/models/lookup.dart'; class DemoAttachments { int? id; num? demoRequestId; num? documentTypeId; Lookup? documentType; String? attachmentName; String? originalName; DemoAttachments({this.id, this.documentTypeId, this.documentType, this.attachmentName, this.demoRequestId, this.originalName}); DemoAttachments.fromJson(dynamic json) { id = json['id']; documentTypeId = json['documentTypeId']; 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; map['documentTypeId'] = documentTypeId; map['attachmentName'] = attachmentName; map['demoRequestId'] = demoRequestId; map['originalName'] = originalName; return map; } }