/* Options: Date: 2024-12-23 11:38:37 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //GlobalNamespace: ConsumerApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetAppMenuDataRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library ConsumerApi; import 'package:servicestack/servicestack.dart'; class GetAppMenuDataResponse implements IConvertible { int? followedPlacesCount; int? starredAdMessagesCount; int? savedSearchesCount; int? newsCount; bool? hasActiveLottery; GetAppMenuDataResponse({this.followedPlacesCount,this.starredAdMessagesCount,this.savedSearchesCount,this.newsCount,this.hasActiveLottery}); GetAppMenuDataResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { followedPlacesCount = json['followedPlacesCount']; starredAdMessagesCount = json['starredAdMessagesCount']; savedSearchesCount = json['savedSearchesCount']; newsCount = json['newsCount']; hasActiveLottery = json['hasActiveLottery']; return this; } Map toJson() => { 'followedPlacesCount': followedPlacesCount, 'starredAdMessagesCount': starredAdMessagesCount, 'savedSearchesCount': savedSearchesCount, 'newsCount': newsCount, 'hasActiveLottery': hasActiveLottery }; getTypeName() => "GetAppMenuDataResponse"; TypeContext? context = _ctx; } // @Route("/menu", "GET") class GetAppMenuDataRequest implements IReturn, IGet, IConvertible { GetAppMenuDataRequest(); GetAppMenuDataRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetAppMenuDataResponse(); getResponseTypeName() => "GetAppMenuDataResponse"; getTypeName() => "GetAppMenuDataRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'ConsumerApi', types: { 'GetAppMenuDataResponse': TypeInfo(TypeOf.Class, create:() => GetAppMenuDataResponse()), 'GetAppMenuDataRequest': TypeInfo(TypeOf.Class, create:() => GetAppMenuDataRequest()), });