/* Options: Date: 2024-12-22 12:05:36 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: GetTechnologyStackFavoriteDetails.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GetTechnologyStackFavoriteDetailsResponse implements IConvertible { List? users; int? favoriteCount; GetTechnologyStackFavoriteDetailsResponse({this.users,this.favoriteCount}); GetTechnologyStackFavoriteDetailsResponse.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() => "GetTechnologyStackFavoriteDetailsResponse"; TypeContext? context = _ctx; } // @Route("/techstacks/{Slug}/favorites") class GetTechnologyStackFavoriteDetails implements IReturn, IGet, IConvertible { String? slug; GetTechnologyStackFavoriteDetails({this.slug}); GetTechnologyStackFavoriteDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { slug = json['slug']; return this; } Map toJson() => { 'slug': slug }; createResponse() => GetTechnologyStackFavoriteDetailsResponse(); getResponseTypeName() => "GetTechnologyStackFavoriteDetailsResponse"; getTypeName() => "GetTechnologyStackFavoriteDetails"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'GetTechnologyStackFavoriteDetailsResponse': TypeInfo(TypeOf.Class, create:() => GetTechnologyStackFavoriteDetailsResponse()), 'GetTechnologyStackFavoriteDetails': TypeInfo(TypeOf.Class, create:() => GetTechnologyStackFavoriteDetails()), });