/* Options: Date: 2025-05-12 18:49:22 Version: 8.53 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PostObjectToChannel.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class CustomType implements IConvertible { int? id; String? name; CustomType({this.id,this.name}); CustomType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; return this; } Map toJson() => { 'id': id, 'name': name }; getTypeName() => "CustomType"; TypeContext? context = _ctx; } class SetterType implements IConvertible { int? id; String? name; SetterType({this.id,this.name}); SetterType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; return this; } Map toJson() => { 'id': id, 'name': name }; getTypeName() => "SetterType"; TypeContext? context = _ctx; } // @Route("/channels/{Channel}/object") class PostObjectToChannel implements IReturnVoid, IConvertible, IPost { String? toUserId; String? channel; String? selector; CustomType? customType; SetterType? setterType; PostObjectToChannel({this.toUserId,this.channel,this.selector,this.customType,this.setterType}); PostObjectToChannel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { toUserId = json['toUserId']; channel = json['channel']; selector = json['selector']; customType = JsonConverters.fromJson(json['customType'],'CustomType',context!); setterType = JsonConverters.fromJson(json['setterType'],'SetterType',context!); return this; } Map toJson() => { 'toUserId': toUserId, 'channel': channel, 'selector': selector, 'customType': JsonConverters.toJson(customType,'CustomType',context!), 'setterType': JsonConverters.toJson(setterType,'SetterType',context!) }; createResponse() {} getTypeName() => "PostObjectToChannel"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'CustomType': TypeInfo(TypeOf.Class, create:() => CustomType()), 'SetterType': TypeInfo(TypeOf.Class, create:() => SetterType()), 'PostObjectToChannel': TypeInfo(TypeOf.Class, create:() => PostObjectToChannel()), });