/* Options: Date: 2024-12-22 13:50:39 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetTechnologyFavoriteDetails.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GetTechnologyFavoriteDetailsResponse implements IConvertible { List? users; int? favoriteCount; GetTechnologyFavoriteDetailsResponse({this.users,this.favoriteCount}); GetTechnologyFavoriteDetailsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { users = JsonConverters.fromJson(json['users'],'List',context!); favoriteCount = json['favoriteCount']; return this; } Map toJson() => { 'users': JsonConverters.toJson(users,'List',context!), 'favoriteCount': favoriteCount }; getTypeName() => "GetTechnologyFavoriteDetailsResponse"; TypeContext? context = _ctx; } // @Route("/technology/{Slug}/favorites") class GetTechnologyFavoriteDetails implements IReturn, IGet, IConvertible { String? slug; GetTechnologyFavoriteDetails({this.slug}); GetTechnologyFavoriteDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = json['slug']; return this; } Map toJson() => { 'slug': slug }; createResponse() => GetTechnologyFavoriteDetailsResponse(); getResponseTypeName() => "GetTechnologyFavoriteDetailsResponse"; getTypeName() => "GetTechnologyFavoriteDetails"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'GetTechnologyFavoriteDetailsResponse': TypeInfo(TypeOf.Class, create:() => GetTechnologyFavoriteDetailsResponse()), 'GetTechnologyFavoriteDetails': TypeInfo(TypeOf.Class, create:() => GetTechnologyFavoriteDetails()), });