/* Options: Date: 2025-12-06 06:29:22 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: BusinessCardStatusRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Address implements IConvertible { int? ID; int? AddressTypeID; String? AddressContact; String? AttentionTo; String? AddressLine1; String? AddressLine2; String? AddressLine3; String? AddressCity; String? AddressState; String? AddressZip; String? AddressCountry; String? PhoneNumber; String? FaxNumber; String? UID; String? Name; Address({this.ID,this.AddressTypeID,this.AddressContact,this.AttentionTo,this.AddressLine1,this.AddressLine2,this.AddressLine3,this.AddressCity,this.AddressState,this.AddressZip,this.AddressCountry,this.PhoneNumber,this.FaxNumber,this.UID,this.Name}); Address.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; AddressTypeID = json['AddressTypeID']; AddressContact = json['AddressContact']; AttentionTo = json['AttentionTo']; AddressLine1 = json['AddressLine1']; AddressLine2 = json['AddressLine2']; AddressLine3 = json['AddressLine3']; AddressCity = json['AddressCity']; AddressState = json['AddressState']; AddressZip = json['AddressZip']; AddressCountry = json['AddressCountry']; PhoneNumber = json['PhoneNumber']; FaxNumber = json['FaxNumber']; UID = json['UID']; Name = json['Name']; return this; } Map toJson() => { 'ID': ID, 'AddressTypeID': AddressTypeID, 'AddressContact': AddressContact, 'AttentionTo': AttentionTo, 'AddressLine1': AddressLine1, 'AddressLine2': AddressLine2, 'AddressLine3': AddressLine3, 'AddressCity': AddressCity, 'AddressState': AddressState, 'AddressZip': AddressZip, 'AddressCountry': AddressCountry, 'PhoneNumber': PhoneNumber, 'FaxNumber': FaxNumber, 'UID': UID, 'Name': Name }; getTypeName() => "Address"; TypeContext? context = _ctx; } class BusinessCard implements IConvertible { int? CardId; int? AgentId; int? NumRows; String? Name; String? Title; String? Phone; String? Fax; String? Cell; String? Email; String? Address; String? License; DateTime? SubmittedDate; DateTime? OrderedDate; DateTime? ProofApprovedDate; String? AdminApproved; DateTime? AdminApprovedDate; int? Quantity; String? Notes; int? ShippingAddressId; int? BusinessCardFrontTypeId; int? BusinessCardBackTypeId; String? ArtURL; String? OrderedURL; Address? OrderedAddress; String? OrderedUser; BusinessCard({this.CardId,this.AgentId,this.NumRows,this.Name,this.Title,this.Phone,this.Fax,this.Cell,this.Email,this.Address,this.License,this.SubmittedDate,this.OrderedDate,this.ProofApprovedDate,this.AdminApproved,this.AdminApprovedDate,this.Quantity,this.Notes,this.ShippingAddressId,this.BusinessCardFrontTypeId,this.BusinessCardBackTypeId,this.ArtURL,this.OrderedURL,this.OrderedAddress,this.OrderedUser}); BusinessCard.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CardId = json['CardId']; AgentId = json['AgentId']; NumRows = json['NumRows']; Name = json['Name']; Title = json['Title']; Phone = json['Phone']; Fax = json['Fax']; Cell = json['Cell']; Email = json['Email']; Address = json['Address']; License = json['License']; SubmittedDate = JsonConverters.fromJson(json['SubmittedDate'],'DateTime',context!); OrderedDate = JsonConverters.fromJson(json['OrderedDate'],'DateTime',context!); ProofApprovedDate = JsonConverters.fromJson(json['ProofApprovedDate'],'DateTime',context!); AdminApproved = json['AdminApproved']; AdminApprovedDate = JsonConverters.fromJson(json['AdminApprovedDate'],'DateTime',context!); Quantity = json['Quantity']; Notes = json['Notes']; ShippingAddressId = json['ShippingAddressId']; BusinessCardFrontTypeId = json['BusinessCardFrontTypeId']; BusinessCardBackTypeId = json['BusinessCardBackTypeId']; ArtURL = json['ArtURL']; OrderedURL = json['OrderedURL']; OrderedAddress = JsonConverters.fromJson(json['OrderedAddress'],'Address',context!); OrderedUser = json['OrderedUser']; return this; } Map toJson() => { 'CardId': CardId, 'AgentId': AgentId, 'NumRows': NumRows, 'Name': Name, 'Title': Title, 'Phone': Phone, 'Fax': Fax, 'Cell': Cell, 'Email': Email, 'Address': Address, 'License': License, 'SubmittedDate': JsonConverters.toJson(SubmittedDate,'DateTime',context!), 'OrderedDate': JsonConverters.toJson(OrderedDate,'DateTime',context!), 'ProofApprovedDate': JsonConverters.toJson(ProofApprovedDate,'DateTime',context!), 'AdminApproved': AdminApproved, 'AdminApprovedDate': JsonConverters.toJson(AdminApprovedDate,'DateTime',context!), 'Quantity': Quantity, 'Notes': Notes, 'ShippingAddressId': ShippingAddressId, 'BusinessCardFrontTypeId': BusinessCardFrontTypeId, 'BusinessCardBackTypeId': BusinessCardBackTypeId, 'ArtURL': ArtURL, 'OrderedURL': OrderedURL, 'OrderedAddress': JsonConverters.toJson(OrderedAddress,'Address',context!), 'OrderedUser': OrderedUser }; getTypeName() => "BusinessCard"; TypeContext? context = _ctx; } class BusinessCardResponse implements IConvertible { ResponseStatus? ResponseStatus; List? BusinessCard = []; BusinessCardResponse({this.ResponseStatus,this.BusinessCard}); BusinessCardResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); BusinessCard = JsonConverters.fromJson(json['BusinessCard'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'BusinessCard': JsonConverters.toJson(BusinessCard,'List',context!) }; getTypeName() => "BusinessCardResponse"; TypeContext? context = _ctx; } // @Route("/v1/BusinessCardStatus", "GET,OPTIONS") class BusinessCardStatusRequest implements IReturn, IConvertible, IGet { List? BusinessCard = []; BusinessCardStatusRequest({this.BusinessCard}); BusinessCardStatusRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { BusinessCard = JsonConverters.fromJson(json['BusinessCard'],'List',context!); return this; } Map toJson() => { 'BusinessCard': JsonConverters.toJson(BusinessCard,'List',context!) }; createResponse() => BusinessCardResponse(); getResponseTypeName() => "BusinessCardResponse"; getTypeName() => "BusinessCardStatusRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Address': TypeInfo(TypeOf.Class, create:() => Address()), 'BusinessCard': TypeInfo(TypeOf.Class, create:() => BusinessCard()), 'BusinessCardResponse': TypeInfo(TypeOf.Class, create:() => BusinessCardResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BusinessCardStatusRequest': TypeInfo(TypeOf.Class, create:() => BusinessCardStatusRequest()), });