/* Options: Date: 2025-12-06 07:05:26 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: SalesPackageRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SalesPackage implements IConvertible { int? ID; String? PackageName; String? HashingPower; int? ControllerType; int? ControllerQuantity; int? MinerType; int? MinerQuantity; double? Price; String? Description; String? ImageURL; String? SpecialSaleText; double? ShipPrice; double? DiscountPrice; SalesPackage({this.ID,this.PackageName,this.HashingPower,this.ControllerType,this.ControllerQuantity,this.MinerType,this.MinerQuantity,this.Price,this.Description,this.ImageURL,this.SpecialSaleText,this.ShipPrice,this.DiscountPrice}); SalesPackage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; PackageName = json['PackageName']; HashingPower = json['HashingPower']; ControllerType = json['ControllerType']; ControllerQuantity = json['ControllerQuantity']; MinerType = json['MinerType']; MinerQuantity = json['MinerQuantity']; Price = JsonConverters.toDouble(json['Price']); Description = json['Description']; ImageURL = json['ImageURL']; SpecialSaleText = json['SpecialSaleText']; ShipPrice = JsonConverters.toDouble(json['ShipPrice']); DiscountPrice = JsonConverters.toDouble(json['DiscountPrice']); return this; } Map toJson() => { 'ID': ID, 'PackageName': PackageName, 'HashingPower': HashingPower, 'ControllerType': ControllerType, 'ControllerQuantity': ControllerQuantity, 'MinerType': MinerType, 'MinerQuantity': MinerQuantity, 'Price': Price, 'Description': Description, 'ImageURL': ImageURL, 'SpecialSaleText': SpecialSaleText, 'ShipPrice': ShipPrice, 'DiscountPrice': DiscountPrice }; getTypeName() => "SalesPackage"; TypeContext? context = _ctx; } class SalesPackageResponse implements IConvertible { ResponseStatus? ResponseStatus; List? SalesPackage = []; SalesPackageResponse({this.ResponseStatus,this.SalesPackage}); SalesPackageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); SalesPackage = JsonConverters.fromJson(json['SalesPackage'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'SalesPackage': JsonConverters.toJson(SalesPackage,'List',context!) }; getTypeName() => "SalesPackageResponse"; TypeContext? context = _ctx; } // @Route("/v1/SalesPackage", "GET") class SalesPackageRequest implements IReturn, IConvertible, IGet { List? SalesPackage = []; SalesPackageRequest({this.SalesPackage}); SalesPackageRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SalesPackage = JsonConverters.fromJson(json['SalesPackage'],'List',context!); return this; } Map toJson() => { 'SalesPackage': JsonConverters.toJson(SalesPackage,'List',context!) }; createResponse() => SalesPackageResponse(); getResponseTypeName() => "SalesPackageResponse"; getTypeName() => "SalesPackageRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'SalesPackage': TypeInfo(TypeOf.Class, create:() => SalesPackage()), 'SalesPackageResponse': TypeInfo(TypeOf.Class, create:() => SalesPackageResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SalesPackageRequest': TypeInfo(TypeOf.Class, create:() => SalesPackageRequest()), });