/* Options: Date: 2026-09-21 22:53:16 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://clouddemo.pickeos.com:1337 //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddBox.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @Route("/AddBox") class AddBox implements IConvertible, IPost { /** * Name of the box */ // @ApiMember(Description="Name of the box", IsRequired=true) String? Name; /** * Size X of the box in cm */ // @ApiMember(Description="Size X of the box in cm", IsRequired=true) double? SizeXcm; /** * Size Y of the box in cm */ // @ApiMember(Description="Size Y of the box in cm", IsRequired=true) double? SizeYcm; /** * Size Z of the box in cm */ // @ApiMember(Description="Size Z of the box in cm", IsRequired=true) double? SizeZcm; AddBox({this.Name,this.SizeXcm,this.SizeYcm,this.SizeZcm}); AddBox.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; SizeXcm = JsonConverters.toDouble(json['SizeXcm']); SizeYcm = JsonConverters.toDouble(json['SizeYcm']); SizeZcm = JsonConverters.toDouble(json['SizeZcm']); return this; } Map toJson() => { 'Name': Name, 'SizeXcm': SizeXcm, 'SizeYcm': SizeYcm, 'SizeZcm': SizeZcm }; getTypeName() => "AddBox"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: { 'AddBox': TypeInfo(TypeOf.Class, create:() => AddBox()), });