/* Options: Date: 2026-09-22 19:34:07 Version: 10.09 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 */ import 'package:servicestack/servicestack.dart'; class Contact implements IConvertible { int id = 0; // @computed() String displayName = ""; String profileUrl = ""; String firstName = ""; String lastName = ""; int? salaryExpectation; String jobType = ""; int availabilityWeeks = 0; EmploymentType? preferredWorkType; String preferredLocation = ""; String email = ""; String phone = ""; List? skills; String about = ""; List applications = []; Contact({this.id=0,this.displayName="",this.profileUrl="",this.firstName="",this.lastName="",this.salaryExpectation,this.jobType="",this.availabilityWeeks=0,this.preferredWorkType,this.preferredLocation="",this.email="",this.phone="",this.skills,this.about="",this.applications=const []}); Contact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id'] ?? 0; displayName = json['displayName'] ?? ""; profileUrl = json['profileUrl'] ?? ""; firstName = json['firstName'] ?? ""; lastName = json['lastName'] ?? ""; salaryExpectation = json['salaryExpectation']; jobType = json['jobType'] ?? ""; availabilityWeeks = json['availabilityWeeks'] ?? 0; 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 = 0; DeleteContact({this.id=0}); DeleteContact.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id'] ?? 0; 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()), });