/* Options: Date: 2025-05-13 22:28:18 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://chinook.netcore.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PatchEmployees.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Employees implements IConvertible { int? employeeId; // @required() String? lastName; // @required() String? firstName; String? title; int? reportsTo; DateTime? birthDate; DateTime? hireDate; String? address; String? city; String? state; String? country; String? postalCode; String? phone; String? fax; String? email; Employees({this.employeeId,this.lastName,this.firstName,this.title,this.reportsTo,this.birthDate,this.hireDate,this.address,this.city,this.state,this.country,this.postalCode,this.phone,this.fax,this.email}); Employees.fromJson(Map json) { fromMap(json); } fromMap(Map json) { employeeId = json['employeeId']; lastName = json['lastName']; firstName = json['firstName']; title = json['title']; reportsTo = json['reportsTo']; birthDate = JsonConverters.fromJson(json['birthDate'],'DateTime',context!); hireDate = JsonConverters.fromJson(json['hireDate'],'DateTime',context!); address = json['address']; city = json['city']; state = json['state']; country = json['country']; postalCode = json['postalCode']; phone = json['phone']; fax = json['fax']; email = json['email']; return this; } Map toJson() => { 'employeeId': employeeId, 'lastName': lastName, 'firstName': firstName, 'title': title, 'reportsTo': reportsTo, 'birthDate': JsonConverters.toJson(birthDate,'DateTime',context!), 'hireDate': JsonConverters.toJson(hireDate,'DateTime',context!), 'address': address, 'city': city, 'state': state, 'country': country, 'postalCode': postalCode, 'phone': phone, 'fax': fax, 'email': email }; getTypeName() => "Employees"; TypeContext? context = _ctx; } // @Route("/employees/{EmployeeId}", "PATCH") class PatchEmployees implements IReturn, IPatch, IPatchDb, IConvertible { int? employeeId; String? lastName; String? firstName; String? title; int? reportsTo; DateTime? birthDate; DateTime? hireDate; String? address; String? city; String? state; String? country; String? postalCode; String? phone; String? fax; String? email; PatchEmployees({this.employeeId,this.lastName,this.firstName,this.title,this.reportsTo,this.birthDate,this.hireDate,this.address,this.city,this.state,this.country,this.postalCode,this.phone,this.fax,this.email}); PatchEmployees.fromJson(Map json) { fromMap(json); } fromMap(Map json) { employeeId = json['employeeId']; lastName = json['lastName']; firstName = json['firstName']; title = json['title']; reportsTo = json['reportsTo']; birthDate = JsonConverters.fromJson(json['birthDate'],'DateTime',context!); hireDate = JsonConverters.fromJson(json['hireDate'],'DateTime',context!); address = json['address']; city = json['city']; state = json['state']; country = json['country']; postalCode = json['postalCode']; phone = json['phone']; fax = json['fax']; email = json['email']; return this; } Map toJson() => { 'employeeId': employeeId, 'lastName': lastName, 'firstName': firstName, 'title': title, 'reportsTo': reportsTo, 'birthDate': JsonConverters.toJson(birthDate,'DateTime',context!), 'hireDate': JsonConverters.toJson(hireDate,'DateTime',context!), 'address': address, 'city': city, 'state': state, 'country': country, 'postalCode': postalCode, 'phone': phone, 'fax': fax, 'email': email }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "PatchEmployees"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'chinook.netcore.io', types: { 'Employees': TypeInfo(TypeOf.Class, create:() => Employees()), 'PatchEmployees': TypeInfo(TypeOf.Class, create:() => PatchEmployees()), });