/* Options: Date: 2024-05-17 02:13:24 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PostChatToChannel.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data,dart:collection */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; import 'dart:collection'; class ChatMessage implements IConvertible { int? id; String? channel; String? fromUserId; String? fromName; String? displayName; String? message; String? userAuthId; bool? private; ChatMessage({this.id,this.channel,this.fromUserId,this.fromName,this.displayName,this.message,this.userAuthId,this.private}); ChatMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; channel = json['channel']; fromUserId = json['fromUserId']; fromName = json['fromName']; displayName = json['displayName']; message = json['message']; userAuthId = json['userAuthId']; private = json['private']; return this; } Map toJson() => { 'id': id, 'channel': channel, 'fromUserId': fromUserId, 'fromName': fromName, 'displayName': displayName, 'message': message, 'userAuthId': userAuthId, 'private': private }; getTypeName() => "ChatMessage"; TypeContext? context = _ctx; } // @Route("/channels/{Channel}/chat") class PostChatToChannel implements IReturn, IConvertible, IPost { String? from; String? toUserId; String? channel; String? message; String? selector; PostChatToChannel({this.from,this.toUserId,this.channel,this.message,this.selector}); PostChatToChannel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { from = json['from']; toUserId = json['toUserId']; channel = json['channel']; message = json['message']; selector = json['selector']; return this; } Map toJson() => { 'from': from, 'toUserId': toUserId, 'channel': channel, 'message': message, 'selector': selector }; createResponse() => ChatMessage(); getResponseTypeName() => "ChatMessage"; getTypeName() => "PostChatToChannel"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'ChatMessage': TypeInfo(TypeOf.Class, create:() => ChatMessage()), 'PostChatToChannel': TypeInfo(TypeOf.Class, create:() => PostChatToChannel()), });