/* Options: Date: 2026-06-01 15:02:42 Version: 8.52 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.imglobal.com/RestApi //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CommentsBatchUpdateRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CollectionResponse implements IConvertible { int? TotalCount; List? Items; CollectionResponse({this.TotalCount,this.Items}); CollectionResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TotalCount = json['TotalCount']; Items = JsonConverters.fromJson(json['Items'],'List',context!); return this; } Map toJson() => { 'TotalCount': TotalCount, 'Items': JsonConverters.toJson(Items,'List',context!) }; getTypeName() => "CollectionResponse<$T>"; TypeContext? context = _ctx; } // @Route("/comments-api/comments/list", "PUT") class CommentsBatchUpdateRequest implements IReturn>, IConvertible, IPut { List? Key; String? Status; CommentsBatchUpdateRequest({this.Key,this.Status}); CommentsBatchUpdateRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = JsonConverters.fromJson(json['Key'],'List',context!); Status = json['Status']; return this; } Map toJson() => { 'Key': JsonConverters.toJson(Key,'List',context!), 'Status': Status }; createResponse() => CollectionResponse(); getResponseTypeName() => "CollectionResponse"; getTypeName() => "CommentsBatchUpdateRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.imglobal.com', types: { 'CollectionResponse': TypeInfo(TypeOf.Class, create:() => CollectionResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CommentResponse': TypeInfo(TypeOf.Class, create:() => CommentResponse()), 'CommentsBatchUpdateRequest': TypeInfo(TypeOf.Class, create:() => CommentsBatchUpdateRequest()), });