/* Options: Date: 2024-12-22 21:33:10 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: DeleteContact.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Contact implements IConvertible { int? id; // @computed() String? displayName; String? profileUrl; String? firstName; String? lastName; int? salaryExpectation; String? jobType; int? availabilityWeeks; EmploymentType? preferredWorkType; String? preferredLocation; String? email; String? phone; List? skills; String? about; List? applications = []; Contact({this.id,this.displayName,this.profileUrl,this.firstName,this.lastName,this.salaryExpectation,this.jobType,this.availabilityWeeks,this.preferredWorkType,this.preferredLocation,this.email,this.phone,this.skills,this.about,this.applications}); Contact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; displayName = json['displayName']; profileUrl = json['profileUrl']; firstName = json['firstName']; lastName = json['lastName']; salaryExpectation = json['salaryExpectation']; jobType = json['jobType']; availabilityWeeks = json['availabilityWeeks']; preferredWorkType = JsonConverters.fromJson(json['preferredWorkType'],'EmploymentType',context!); preferredLocation = json['preferredLocation']; email = json['email']; phone = json['phone']; skills = JsonConverters.fromJson(json['skills'],'List',context!); about = json['about']; applications = JsonConverters.fromJson(json['applications'],'List',context!); return this; } Map toJson() => { 'id': id, 'displayName': displayName, 'profileUrl': profileUrl, 'firstName': firstName, 'lastName': lastName, 'salaryExpectation': salaryExpectation, 'jobType': jobType, 'availabilityWeeks': availabilityWeeks, 'preferredWorkType': JsonConverters.toJson(preferredWorkType,'EmploymentType',context!), 'preferredLocation': preferredLocation, 'email': email, 'phone': phone, 'skills': JsonConverters.toJson(skills,'List',context!), 'about': about, 'applications': JsonConverters.toJson(applications,'List',context!) }; getTypeName() => "Contact"; TypeContext? context = _ctx; } class DeleteContact implements IReturnVoid, IDeleteDb, IConvertible, IDelete { int? id; DeleteContact({this.id}); DeleteContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() {} getTypeName() => "DeleteContact"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Contact': TypeInfo(TypeOf.Class, create:() => Contact()), 'EmploymentType': TypeInfo(TypeOf.Class, create:() => EmploymentType()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'JobApplication': TypeInfo(TypeOf.Class, create:() => JobApplication()), 'DeleteContact': TypeInfo(TypeOf.Class, create:() => DeleteContact()), });