/* Options: Date: 2024-05-16 12:05:44 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://test.servicestack.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetChatHistory.* //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; } class GetChatHistoryResponse implements IConvertible { List? results; ResponseStatus? responseStatus; GetChatHistoryResponse({this.results,this.responseStatus}); GetChatHistoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { results = JsonConverters.fromJson(json['results'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'results': JsonConverters.toJson(results,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetChatHistoryResponse"; TypeContext? context = _ctx; } // @Route("/chathistory") class GetChatHistory implements IReturn, IConvertible, IPost { List? channels; int? afterId; int? take; GetChatHistory({this.channels,this.afterId,this.take}); GetChatHistory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { channels = JsonConverters.fromJson(json['channels'],'List',context!); afterId = json['afterId']; take = json['take']; return this; } Map toJson() => { 'channels': JsonConverters.toJson(channels,'List',context!), 'afterId': afterId, 'take': take }; createResponse() => GetChatHistoryResponse(); getResponseTypeName() => "GetChatHistoryResponse"; getTypeName() => "GetChatHistory"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: { 'ChatMessage': TypeInfo(TypeOf.Class, create:() => ChatMessage()), 'GetChatHistoryResponse': TypeInfo(TypeOf.Class, create:() => GetChatHistoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetChatHistory': TypeInfo(TypeOf.Class, create:() => GetChatHistory()), });