/* Options: Date: 2026-09-21 22:55:00 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: SetPositions.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; // @Route("/SetPositions") class SetPositions implements IConvertible, IPost { /** * Key identifying a location */ // @ApiMember(Description="Key identifying a location", IsRequired=true) List? Positions = []; /** * Optional: name of the stockroom where the position is located */ // @ApiMember(Description="Optional: name of the stockroom where the position is located") String? StockroomName; /** * Optional: overwrite existing positions defined with the same key: Yes by default */ // @ApiMember(Description="Optional: overwrite existing positions defined with the same key: Yes by default") bool? Overwrite; SetPositions({this.Positions,this.StockroomName,this.Overwrite}); SetPositions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Positions = JsonConverters.fromJson(json['Positions'],'List',context!); StockroomName = json['StockroomName']; Overwrite = json['Overwrite']; return this; } Map toJson() => { 'Positions': JsonConverters.toJson(Positions,'List',context!), 'StockroomName': StockroomName, 'Overwrite': Overwrite }; getTypeName() => "SetPositions"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: { 'SetPositions': TypeInfo(TypeOf.Class, create:() => SetPositions()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Position': TypeInfo(TypeOf.Class, create:() => Position()), });