/* Options: Date: 2025-06-09 19:21:05 Version: 6.60 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://webservices.mbukdatabase.co.uk/MBVansOnlineCustomerAccount //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Subscribe.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ReturnStatus implements IConvertible { String? ReturnCode; String? Message; ReturnStatus({this.ReturnCode,this.Message}); ReturnStatus.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ReturnCode = json['ReturnCode']; Message = json['Message']; return this; } Map toJson() => { 'ReturnCode': ReturnCode, 'Message': Message }; getTypeName() => "ReturnStatus"; TypeContext? context = _ctx; } class SubscribeResponse implements IConvertible { ReturnStatus? Status; String? FirstName; String? LastName; String? EmailAddress; String? MobileTelephoneNumber; String? HomeAddress_BuildingNumberName; String? HomeAddress_Line1; String? HomeAddress_Line2; String? HomeAddress_TownCity; String? HomeAddress_County; String? HomeAddress_Postcode; String? CompanyName; String? CompanyType; String? CompanyRegistrationNumber; String? VATNumber; String? BusinessAddress_BuildingNumberName; String? BusinessAddress_Line1; String? BusinessAddress_Line2; String? BusinessAddress_TownCity; String? BusinessAddress_County; String? BusinessAddress_Postcode; String? BusinessIndustryType; String? FleetSize; String? EmailOptIn; String? TelephoneOptIn; String? SMSOptIn; String? PostOptIn; SubscribeResponse({this.Status,this.FirstName,this.LastName,this.EmailAddress,this.MobileTelephoneNumber,this.HomeAddress_BuildingNumberName,this.HomeAddress_Line1,this.HomeAddress_Line2,this.HomeAddress_TownCity,this.HomeAddress_County,this.HomeAddress_Postcode,this.CompanyName,this.CompanyType,this.CompanyRegistrationNumber,this.VATNumber,this.BusinessAddress_BuildingNumberName,this.BusinessAddress_Line1,this.BusinessAddress_Line2,this.BusinessAddress_TownCity,this.BusinessAddress_County,this.BusinessAddress_Postcode,this.BusinessIndustryType,this.FleetSize,this.EmailOptIn,this.TelephoneOptIn,this.SMSOptIn,this.PostOptIn}); SubscribeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Status = JsonConverters.fromJson(json['Status'],'ReturnStatus',context!); FirstName = json['FirstName']; LastName = json['LastName']; EmailAddress = json['EmailAddress']; MobileTelephoneNumber = json['MobileTelephoneNumber']; HomeAddress_BuildingNumberName = json['HomeAddress_BuildingNumberName']; HomeAddress_Line1 = json['HomeAddress_Line1']; HomeAddress_Line2 = json['HomeAddress_Line2']; HomeAddress_TownCity = json['HomeAddress_TownCity']; HomeAddress_County = json['HomeAddress_County']; HomeAddress_Postcode = json['HomeAddress_Postcode']; CompanyName = json['CompanyName']; CompanyType = json['CompanyType']; CompanyRegistrationNumber = json['CompanyRegistrationNumber']; VATNumber = json['VATNumber']; BusinessAddress_BuildingNumberName = json['BusinessAddress_BuildingNumberName']; BusinessAddress_Line1 = json['BusinessAddress_Line1']; BusinessAddress_Line2 = json['BusinessAddress_Line2']; BusinessAddress_TownCity = json['BusinessAddress_TownCity']; BusinessAddress_County = json['BusinessAddress_County']; BusinessAddress_Postcode = json['BusinessAddress_Postcode']; BusinessIndustryType = json['BusinessIndustryType']; FleetSize = json['FleetSize']; EmailOptIn = json['EmailOptIn']; TelephoneOptIn = json['TelephoneOptIn']; SMSOptIn = json['SMSOptIn']; PostOptIn = json['PostOptIn']; return this; } Map toJson() => { 'Status': JsonConverters.toJson(Status,'ReturnStatus',context!), 'FirstName': FirstName, 'LastName': LastName, 'EmailAddress': EmailAddress, 'MobileTelephoneNumber': MobileTelephoneNumber, 'HomeAddress_BuildingNumberName': HomeAddress_BuildingNumberName, 'HomeAddress_Line1': HomeAddress_Line1, 'HomeAddress_Line2': HomeAddress_Line2, 'HomeAddress_TownCity': HomeAddress_TownCity, 'HomeAddress_County': HomeAddress_County, 'HomeAddress_Postcode': HomeAddress_Postcode, 'CompanyName': CompanyName, 'CompanyType': CompanyType, 'CompanyRegistrationNumber': CompanyRegistrationNumber, 'VATNumber': VATNumber, 'BusinessAddress_BuildingNumberName': BusinessAddress_BuildingNumberName, 'BusinessAddress_Line1': BusinessAddress_Line1, 'BusinessAddress_Line2': BusinessAddress_Line2, 'BusinessAddress_TownCity': BusinessAddress_TownCity, 'BusinessAddress_County': BusinessAddress_County, 'BusinessAddress_Postcode': BusinessAddress_Postcode, 'BusinessIndustryType': BusinessIndustryType, 'FleetSize': FleetSize, 'EmailOptIn': EmailOptIn, 'TelephoneOptIn': TelephoneOptIn, 'SMSOptIn': SMSOptIn, 'PostOptIn': PostOptIn }; getTypeName() => "SubscribeResponse"; TypeContext? context = _ctx; } // @Route("/subscribe/", "POST") class Subscribe implements IReturn, IConvertible { String? CiamId; String? FirstName; String? LastName; String? EmailAddress; String? MobileTelephoneNumber; Subscribe({this.CiamId,this.FirstName,this.LastName,this.EmailAddress,this.MobileTelephoneNumber}); Subscribe.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CiamId = json['CiamId']; FirstName = json['FirstName']; LastName = json['LastName']; EmailAddress = json['EmailAddress']; MobileTelephoneNumber = json['MobileTelephoneNumber']; return this; } Map toJson() => { 'CiamId': CiamId, 'FirstName': FirstName, 'LastName': LastName, 'EmailAddress': EmailAddress, 'MobileTelephoneNumber': MobileTelephoneNumber }; createResponse() => SubscribeResponse(); getResponseTypeName() => "SubscribeResponse"; getTypeName() => "Subscribe"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'webservices.mbukdatabase.co.uk', types: { 'ReturnStatus': TypeInfo(TypeOf.Class, create:() => ReturnStatus()), 'SubscribeResponse': TypeInfo(TypeOf.Class, create:() => SubscribeResponse()), 'Subscribe': TypeInfo(TypeOf.Class, create:() => Subscribe()), });