/* Options: Date: 2025-12-06 06:09:07 Version: 8.70 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.sbbet.ath.cx //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetAds.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class Localization implements IConvertible { String? ln; String? value; Localization({this.ln,this.value}); Localization.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ln = json['ln']; value = json['value']; return this; } Map toJson() => { 'ln': ln, 'value': value }; getTypeName() => "Localization"; TypeContext? context = _ctx; } class Message implements IConvertible { String? id; Map? localizations; Message({this.id,this.localizations}); Message.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; localizations = JsonConverters.fromJson(json['localizations'],'Map',context!); return this; } Map toJson() => { 'id': id, 'localizations': JsonConverters.toJson(localizations,'Map',context!) }; getTypeName() => "Message"; TypeContext? context = _ctx; } class Advertisement implements IConvertible { String? id; Map? messages; Advertisement({this.id,this.messages}); Advertisement.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; messages = JsonConverters.fromJson(json['messages'],'Map',context!); return this; } Map toJson() => { 'id': id, 'messages': JsonConverters.toJson(messages,'Map',context!) }; getTypeName() => "Advertisement"; TypeContext? context = _ctx; } // @Route("/ads", "GET") // @Route("/ads/{Id}", "GET") class GetAds implements IReturn, IConvertible, IGet { String? id; GetAds({this.id}); GetAds.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => Advertisement(); getResponseTypeName() => "Advertisement"; getTypeName() => "GetAds"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: { 'Localization': TypeInfo(TypeOf.Class, create:() => Localization()), 'Message': TypeInfo(TypeOf.Class, create:() => Message()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'Advertisement': TypeInfo(TypeOf.Class, create:() => Advertisement()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'GetAds': TypeInfo(TypeOf.Class, create:() => GetAds()), });