/* Options: Date: 2026-11-08 11:52:28 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Company.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IHaveErrorField { bool? IsError; } class ReplyBase implements IHaveErrorField, IConvertible { int? ErrorCode; String? ErrorMessage; bool? IsError; ReplyBase({this.ErrorCode,this.ErrorMessage,this.IsError}); ReplyBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ErrorCode = json['ErrorCode']; ErrorMessage = json['ErrorMessage']; IsError = json['IsError']; return this; } Map toJson() => { 'ErrorCode': ErrorCode, 'ErrorMessage': ErrorMessage, 'IsError': IsError }; getTypeName() => "ReplyBase"; TypeContext? context = _ctx; } abstract class IHaveErrorField { bool? IsError; } class CompanyReply extends ReplyBase implements IConvertible { String? UniqueId; int? CompanyId; CompanyReply({this.UniqueId,this.CompanyId}); CompanyReply.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); UniqueId = json['UniqueId']; CompanyId = json['CompanyId']; return this; } Map toJson() => super.toJson()..addAll({ 'UniqueId': UniqueId, 'CompanyId': CompanyId }); getTypeName() => "CompanyReply"; TypeContext? context = _ctx; } // @Route("/company", "POST") class Company implements IReturn, IConvertible { String? UniqueId; DateTime? CreatedDateTime; int? ClientId; String? GroupId; int? CompanyId; String? ExternalCompanyId; String? CompanyName; String? Address1; String? Address2; String? City; String? State; String? ZipCode; String? Country; String? Website; String? PhoneNumber; String? Fax; int? StateId; int? CountryId; int? ChapId; Company({this.UniqueId,this.CreatedDateTime,this.ClientId,this.GroupId,this.CompanyId,this.ExternalCompanyId,this.CompanyName,this.Address1,this.Address2,this.City,this.State,this.ZipCode,this.Country,this.Website,this.PhoneNumber,this.Fax,this.StateId,this.CountryId,this.ChapId}); Company.fromJson(Map json) { fromMap(json); } fromMap(Map json) { UniqueId = json['UniqueId']; CreatedDateTime = JsonConverters.fromJson(json['CreatedDateTime'],'DateTime',context!); ClientId = json['ClientId']; GroupId = json['GroupId']; CompanyId = json['CompanyId']; ExternalCompanyId = json['ExternalCompanyId']; CompanyName = json['CompanyName']; Address1 = json['Address1']; Address2 = json['Address2']; City = json['City']; State = json['State']; ZipCode = json['ZipCode']; Country = json['Country']; Website = json['Website']; PhoneNumber = json['PhoneNumber']; Fax = json['Fax']; StateId = json['StateId']; CountryId = json['CountryId']; ChapId = json['ChapId']; return this; } Map toJson() => { 'UniqueId': UniqueId, 'CreatedDateTime': JsonConverters.toJson(CreatedDateTime,'DateTime',context!), 'ClientId': ClientId, 'GroupId': GroupId, 'CompanyId': CompanyId, 'ExternalCompanyId': ExternalCompanyId, 'CompanyName': CompanyName, 'Address1': Address1, 'Address2': Address2, 'City': City, 'State': State, 'ZipCode': ZipCode, 'Country': Country, 'Website': Website, 'PhoneNumber': PhoneNumber, 'Fax': Fax, 'StateId': StateId, 'CountryId': CountryId, 'ChapId': ChapId }; createResponse() => CompanyReply(); getResponseTypeName() => "CompanyReply"; getTypeName() => "Company"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'devapi.billhighway.com', types: { 'IHaveErrorField': TypeInfo(TypeOf.Interface), 'ReplyBase': TypeInfo(TypeOf.Class, create:() => ReplyBase()), 'CompanyReply': TypeInfo(TypeOf.Class, create:() => CompanyReply()), 'Company': TypeInfo(TypeOf.Class, create:() => Company()), });