/* Options: Date: 2025-05-04 23:49:13 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: MarkMessagesRead.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; // @Route("/messages/read", "POST") class MarkMessagesRead implements IReturnVoid, IConvertible, IPost { /** * The account ID of the messages to mark read */ // @ApiMember(Description="The account ID of the messages to mark read") String? accountId; /** * The IDs of the messages to mark read */ // @ApiMember(Description="The IDs of the messages to mark read") List? messageIds; /** * The date after which messages should be marked read */ // @ApiMember(Description="The date after which messages should be marked read") String? afterDate; MarkMessagesRead({this.accountId,this.messageIds,this.afterDate}); MarkMessagesRead.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; messageIds = JsonConverters.fromJson(json['messageIds'],'List',context!); afterDate = json['afterDate']; return this; } Map toJson() => { 'accountId': accountId, 'messageIds': JsonConverters.toJson(messageIds,'List',context!), 'afterDate': afterDate }; createResponse() {} getTypeName() => "MarkMessagesRead"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'MarkMessagesRead': TypeInfo(TypeOf.Class, create:() => MarkMessagesRead()), });