/* Options: Date: 2024-12-22 22:04:32 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeleteJobApplication.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class JobApplication implements IConvertible { int? id; // @References(typeof(Job)) int? jobId; // @References(typeof(Contact)) int? contactId; Job? position; Contact? applicant; List? comments = []; DateTime? appliedDate; JobApplicationStatus? applicationStatus; List? attachments = []; List? events = []; PhoneScreen? phoneScreen; Interview? interview; JobOffer? jobOffer; JobApplication({this.id,this.jobId,this.contactId,this.position,this.applicant,this.comments,this.appliedDate,this.applicationStatus,this.attachments,this.events,this.phoneScreen,this.interview,this.jobOffer}); JobApplication.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; jobId = json['jobId']; contactId = json['contactId']; position = JsonConverters.fromJson(json['position'],'Job',context!); applicant = JsonConverters.fromJson(json['applicant'],'Contact',context!); comments = JsonConverters.fromJson(json['comments'],'List',context!); appliedDate = JsonConverters.fromJson(json['appliedDate'],'DateTime',context!); applicationStatus = JsonConverters.fromJson(json['applicationStatus'],'JobApplicationStatus',context!); attachments = JsonConverters.fromJson(json['attachments'],'List',context!); events = JsonConverters.fromJson(json['events'],'List',context!); phoneScreen = JsonConverters.fromJson(json['phoneScreen'],'PhoneScreen',context!); interview = JsonConverters.fromJson(json['interview'],'Interview',context!); jobOffer = JsonConverters.fromJson(json['jobOffer'],'JobOffer',context!); return this; } Map toJson() => { 'id': id, 'jobId': jobId, 'contactId': contactId, 'position': JsonConverters.toJson(position,'Job',context!), 'applicant': JsonConverters.toJson(applicant,'Contact',context!), 'comments': JsonConverters.toJson(comments,'List',context!), 'appliedDate': JsonConverters.toJson(appliedDate,'DateTime',context!), 'applicationStatus': JsonConverters.toJson(applicationStatus,'JobApplicationStatus',context!), 'attachments': JsonConverters.toJson(attachments,'List',context!), 'events': JsonConverters.toJson(events,'List',context!), 'phoneScreen': JsonConverters.toJson(phoneScreen,'PhoneScreen',context!), 'interview': JsonConverters.toJson(interview,'Interview',context!), 'jobOffer': JsonConverters.toJson(jobOffer,'JobOffer',context!) }; getTypeName() => "JobApplication"; TypeContext? context = _ctx; } class DeleteJobApplication implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? id; DeleteJobApplication({this.id}); DeleteJobApplication.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() {} getTypeName() => "DeleteJobApplication"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'JobApplication': TypeInfo(TypeOf.Class, create:() => JobApplication()), 'Job': TypeInfo(TypeOf.Class, create:() => Job()), 'Contact': TypeInfo(TypeOf.Class, create:() => Contact()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'JobApplicationComment': TypeInfo(TypeOf.Class, create:() => JobApplicationComment()), 'JobApplicationStatus': TypeInfo(TypeOf.Class, create:() => JobApplicationStatus()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'JobApplicationAttachment': TypeInfo(TypeOf.Class, create:() => JobApplicationAttachment()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'JobApplicationEvent': TypeInfo(TypeOf.Class, create:() => JobApplicationEvent()), 'PhoneScreen': TypeInfo(TypeOf.Class, create:() => PhoneScreen()), 'Interview': TypeInfo(TypeOf.Class, create:() => Interview()), 'JobOffer': TypeInfo(TypeOf.Class, create:() => JobOffer()), 'DeleteJobApplication': TypeInfo(TypeOf.Class, create:() => DeleteJobApplication()), });