/* Options: Date: 2024-12-22 21:28:31 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: DeleteChinookEmployee.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; 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}", "DELETE") class DeleteChinookEmployee implements IReturn, IDelete, IDeleteDb, IConvertible { int? employeeId; DeleteChinookEmployee({this.employeeId}); DeleteChinookEmployee.fromJson(Map json) { fromMap(json); } fromMap(Map json) { employeeId = json['employeeId']; return this; } Map toJson() => { 'employeeId': employeeId }; createResponse() => IdResponse(); getResponseTypeName() => "IdResponse"; getTypeName() => "DeleteChinookEmployee"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Employees': TypeInfo(TypeOf.Class, create:() => Employees()), 'DeleteChinookEmployee': TypeInfo(TypeOf.Class, create:() => DeleteChinookEmployee()), });