/* Options: Date: 2026-09-01 21:53:00 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: CreateChinookEmployee.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Employees implements IConvertible { int employeeId = 0; // @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=0,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'] ?? 0; 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", "POST") class CreateChinookEmployee implements IReturn, IPost, ICreateDb, IConvertible { 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 = ""; CreateChinookEmployee({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=""}); CreateChinookEmployee.fromJson(Map json) { fromMap(json); } fromMap(Map json) { 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() => { '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() => "CreateChinookEmployee"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Employees': TypeInfo(TypeOf.Class, create:() => Employees()), 'CreateChinookEmployee': TypeInfo(TypeOf.Class, create:() => CreateChinookEmployee()), });