/* Options: Date: 2025-12-06 05:55:19 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: QueueCustomerRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class QueueCustomer implements IConvertible { String? Id; String? Name; String? Address1; String? Address2; String? City; String? State; String? Zip; String? MobilePhone; String? Email; DateTime? MarketingOptIn; DateTime? DoNoContact; DateTime? EntDate; DateTime? ModDate; QueueCustomer({this.Id,this.Name,this.Address1,this.Address2,this.City,this.State,this.Zip,this.MobilePhone,this.Email,this.MarketingOptIn,this.DoNoContact,this.EntDate,this.ModDate}); QueueCustomer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Address1 = json['Address1']; Address2 = json['Address2']; City = json['City']; State = json['State']; Zip = json['Zip']; MobilePhone = json['MobilePhone']; Email = json['Email']; MarketingOptIn = JsonConverters.fromJson(json['MarketingOptIn'],'DateTime',context!); DoNoContact = JsonConverters.fromJson(json['DoNoContact'],'DateTime',context!); EntDate = JsonConverters.fromJson(json['EntDate'],'DateTime',context!); ModDate = JsonConverters.fromJson(json['ModDate'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Address1': Address1, 'Address2': Address2, 'City': City, 'State': State, 'Zip': Zip, 'MobilePhone': MobilePhone, 'Email': Email, 'MarketingOptIn': JsonConverters.toJson(MarketingOptIn,'DateTime',context!), 'DoNoContact': JsonConverters.toJson(DoNoContact,'DateTime',context!), 'EntDate': JsonConverters.toJson(EntDate,'DateTime',context!), 'ModDate': JsonConverters.toJson(ModDate,'DateTime',context!) }; getTypeName() => "QueueCustomer"; TypeContext? context = _ctx; } class QueueCustomersResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Customers = []; QueueCustomersResponse({this.ResponseStatus,this.Customers}); QueueCustomersResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Customers = JsonConverters.fromJson(json['Customers'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Customers': JsonConverters.toJson(Customers,'List',context!) }; getTypeName() => "QueueCustomersResponse"; TypeContext? context = _ctx; } // @Route("/v1/Customers", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Customers/{Id}", "GET,POST,PUT,DELETE,OPTIONS") class QueueCustomerRequest extends QueueCustomer implements IReturn, IConvertible, IPost { String? ApiKey; QueueCustomerRequest({this.ApiKey}); QueueCustomerRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ApiKey = json['ApiKey']; return this; } Map toJson() => super.toJson()..addAll({ 'ApiKey': ApiKey }); createResponse() => QueueCustomersResponse(); getResponseTypeName() => "QueueCustomersResponse"; getTypeName() => "QueueCustomerRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'QueueCustomer': TypeInfo(TypeOf.Class, create:() => QueueCustomer()), 'QueueCustomersResponse': TypeInfo(TypeOf.Class, create:() => QueueCustomersResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'QueueCustomerRequest': TypeInfo(TypeOf.Class, create:() => QueueCustomerRequest()), });