/* Options: Date: 2024-12-22 21:58:04 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: QueryChinookEmployees.* //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", "GET") // @Route("/employees/{EmployeeId}", "GET") class QueryChinookEmployees extends QueryDb implements IReturn>, IGet, IConvertible { int? employeeId; QueryChinookEmployees({this.employeeId}); QueryChinookEmployees.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); employeeId = json['employeeId']; return this; } Map toJson() => super.toJson()..addAll({ 'employeeId': employeeId }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "QueryChinookEmployees"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'blazor_gallery.servicestack.net', types: { 'Employees': TypeInfo(TypeOf.Class, create:() => Employees()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'QueryChinookEmployees': TypeInfo(TypeOf.Class, create:() => QueryChinookEmployees()), 'List': TypeInfo(TypeOf.Class, create:() => []), });