/* Options: Date: 2025-12-08 14:21:30 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.beto2.webhop.biz //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RelocateLocationDevices.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class RecordList extends ListBase implements IConvertible { final List l = []; set length(int newLength) { l.length = newLength; } int get length => l.length; T operator [](int index) => l[index]; void operator []=(int index, T value) { l[index] = value; } RecordList(); RecordList.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "RecordList<$T>"; TypeContext? context = _ctx; } // @Route("/cmd/locations/devices/relocate", "POST") class RelocateLocationDevices implements IReturn, IConvertible, IPost { String? id; String? sourceLocationId; RecordList? deviceIds; String? destinationLocationId; RelocateLocationDevices({this.id,this.sourceLocationId,this.deviceIds,this.destinationLocationId}); RelocateLocationDevices.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; sourceLocationId = json['sourceLocationId']; deviceIds = JsonConverters.fromJson(json['deviceIds'],'RecordList',context!); destinationLocationId = json['destinationLocationId']; return this; } Map toJson() => { 'id': id, 'sourceLocationId': sourceLocationId, 'deviceIds': JsonConverters.toJson(deviceIds,'RecordList',context!), 'destinationLocationId': destinationLocationId }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "RelocateLocationDevices"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.beto2.webhop.biz', types: { 'RecordList': TypeInfo(TypeOf.GenericDef,create:() => RecordList()), 'RelocateLocationDevices': TypeInfo(TypeOf.Class, create:() => RelocateLocationDevices()), 'RecordList': TypeInfo(TypeOf.Class, create:() => RecordList()), });