/* Options: Date: 2025-11-08 11:11:01 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://s4w2.api.bettor.cc //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ScheduleStimulation.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Ref implements IConvertible { String? id; String? val; Ref({this.id,this.val}); Ref.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; val = json['val']; return this; } Map toJson() => { 'id': id, 'val': val }; getTypeName() => "Ref"; TypeContext? context = _ctx; } // @Route("/cmd/stimulations/schedule") class ScheduleStimulation implements IReturn, IConvertible, IPost { String? id; Ref? target; Ref? pool; ScheduleStimulation({this.id,this.target,this.pool}); ScheduleStimulation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; target = JsonConverters.fromJson(json['target'],'Ref',context!); pool = JsonConverters.fromJson(json['pool'],'Ref',context!); return this; } Map toJson() => { 'id': id, 'target': JsonConverters.toJson(target,'Ref',context!), 'pool': JsonConverters.toJson(pool,'Ref',context!) }; createResponse() => ResponseStatus(); getResponseTypeName() => "ResponseStatus"; getTypeName() => "ScheduleStimulation"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 's4w2.api.bettor.cc', types: { 'Ref': TypeInfo(TypeOf.Class, create:() => Ref()), 'ScheduleStimulation': TypeInfo(TypeOf.Class, create:() => ScheduleStimulation()), });