/* Options: Date: 2026-05-09 19:49:03 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://chienbinhdevias-admin-api-sandbox.adnx.vn //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateOrUpdateSystemActivityRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseResponse implements IResponseRequest, IConvertible { int? code; String? message; SystemActivity? data; BaseResponse({this.code,this.message,this.data}); BaseResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { code = json['code']; message = json['message']; data = JsonConverters.fromJson(json['data'],'SystemActivity',context!); return this; } Map toJson() => { 'code': code, 'message': message, 'data': JsonConverters.toJson(data,'SystemActivity',context!) }; getTypeName() => "BaseResponse<$SystemActivity>"; TypeContext? context = _ctx; } // @Route("/system-activity", "POST") class CreateOrUpdateSystemActivityRequest implements IReturn>, IConvertible, IPost { int? id; String? name; String? description; String? iconUrl; String? backgroundUrl; String? videoUrl; String? referenceLink; String? imageUrl; bool? isActive; int? orderIndex; CreateOrUpdateSystemActivityRequest({this.id,this.name,this.description,this.iconUrl,this.backgroundUrl,this.videoUrl,this.referenceLink,this.imageUrl,this.isActive,this.orderIndex}); CreateOrUpdateSystemActivityRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; description = json['description']; iconUrl = json['iconUrl']; backgroundUrl = json['backgroundUrl']; videoUrl = json['videoUrl']; referenceLink = json['referenceLink']; imageUrl = json['imageUrl']; isActive = json['isActive']; orderIndex = json['orderIndex']; return this; } Map toJson() => { 'id': id, 'name': name, 'description': description, 'iconUrl': iconUrl, 'backgroundUrl': backgroundUrl, 'videoUrl': videoUrl, 'referenceLink': referenceLink, 'imageUrl': imageUrl, 'isActive': isActive, 'orderIndex': orderIndex }; createResponse() => BaseResponse(); getResponseTypeName() => "BaseResponse"; getTypeName() => "CreateOrUpdateSystemActivityRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'chienbinhdevias_admin_api_sandbox.adnx.vn', types: { 'BaseResponse': TypeInfo(TypeOf.Class, create:() => BaseResponse()), 'SystemActivity': TypeInfo(TypeOf.Class, create:() => SystemActivity()), 'CreateOrUpdateSystemActivityRequest': TypeInfo(TypeOf.Class, create:() => CreateOrUpdateSystemActivityRequest()), });