/* Options: Date: 2025-12-06 13:11:00 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://etc-api.vsmlab.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateAsRead.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class IResponseRequest { int? code; String? message; } /** * Cập nhật sang đã đọc theo notification Id */ // @Route("/notifications/{Id}", "Post") // @Route("/notifications", "Post") class UpdateAsRead implements IReturn, IConvertible, IPost { String? id; UpdateAsRead({this.id}); UpdateAsRead.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => IResponseRequest(); getResponseTypeName() => "IResponseRequest"; getTypeName() => "UpdateAsRead"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: { 'IResponseRequest': TypeInfo(TypeOf.Interface), 'UpdateAsRead': TypeInfo(TypeOf.Class, create:() => UpdateAsRead()), });