/* Options: Date: 2024-04-29 07:01:14 Version: 8.13 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetUserInfo.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum TechnologyTier { ProgrammingLanguage, Client, Http, Server, Data, SoftwareInfrastructure, OperatingSystem, HardwareInfrastructure, ThirdPartyServices, } abstract class TechnologyBase { int? id; String? name; String? vendorName; String? vendorUrl; String? productUrl; String? logoUrl; String? description; DateTime? created; String? createdBy; DateTime? lastModified; String? lastModifiedBy; String? ownerId; String? slug; bool? logoApproved; bool? isLocked; TechnologyTier? tier; DateTime? lastStatusUpdate; int? organizationId; int? commentsPostId; int? viewCount; int? favCount; TechnologyBase({this.id,this.name,this.vendorName,this.vendorUrl,this.productUrl,this.logoUrl,this.description,this.created,this.createdBy,this.lastModified,this.lastModifiedBy,this.ownerId,this.slug,this.logoApproved,this.isLocked,this.tier,this.lastStatusUpdate,this.organizationId,this.commentsPostId,this.viewCount,this.favCount}); TechnologyBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; vendorName = json['vendorName']; vendorUrl = json['vendorUrl']; productUrl = json['productUrl']; logoUrl = json['logoUrl']; description = json['description']; created = JsonConverters.fromJson(json['created'],'DateTime',context!); createdBy = json['createdBy']; lastModified = JsonConverters.fromJson(json['lastModified'],'DateTime',context!); lastModifiedBy = json['lastModifiedBy']; ownerId = json['ownerId']; slug = json['slug']; logoApproved = json['logoApproved']; isLocked = json['isLocked']; tier = JsonConverters.fromJson(json['tier'],'TechnologyTier',context!); lastStatusUpdate = JsonConverters.fromJson(json['lastStatusUpdate'],'DateTime',context!); organizationId = json['organizationId']; commentsPostId = json['commentsPostId']; viewCount = json['viewCount']; favCount = json['favCount']; return this; } Map toJson() => { 'id': id, 'name': name, 'vendorName': vendorName, 'vendorUrl': vendorUrl, 'productUrl': productUrl, 'logoUrl': logoUrl, 'description': description, 'created': JsonConverters.toJson(created,'DateTime',context!), 'createdBy': createdBy, 'lastModified': JsonConverters.toJson(lastModified,'DateTime',context!), 'lastModifiedBy': lastModifiedBy, 'ownerId': ownerId, 'slug': slug, 'logoApproved': logoApproved, 'isLocked': isLocked, 'tier': JsonConverters.toJson(tier,'TechnologyTier',context!), 'lastStatusUpdate': JsonConverters.toJson(lastStatusUpdate,'DateTime',context!), 'organizationId': organizationId, 'commentsPostId': commentsPostId, 'viewCount': viewCount, 'favCount': favCount }; getTypeName() => "TechnologyBase"; TypeContext? context = _ctx; } class Technology extends TechnologyBase implements IConvertible { int? id; String? name; String? vendorName; String? vendorUrl; String? productUrl; String? logoUrl; String? description; DateTime? created; String? createdBy; DateTime? lastModified; String? lastModifiedBy; String? ownerId; String? slug; bool? logoApproved; bool? isLocked; TechnologyTier? tier; DateTime? lastStatusUpdate; int? organizationId; int? commentsPostId; int? viewCount; int? favCount; Technology({this.id,this.name,this.vendorName,this.vendorUrl,this.productUrl,this.logoUrl,this.description,this.created,this.createdBy,this.lastModified,this.lastModifiedBy,this.ownerId,this.slug,this.logoApproved,this.isLocked,this.tier,this.lastStatusUpdate,this.organizationId,this.commentsPostId,this.viewCount,this.favCount}); Technology.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; name = json['name']; vendorName = json['vendorName']; vendorUrl = json['vendorUrl']; productUrl = json['productUrl']; logoUrl = json['logoUrl']; description = json['description']; created = JsonConverters.fromJson(json['created'],'DateTime',context!); createdBy = json['createdBy']; lastModified = JsonConverters.fromJson(json['lastModified'],'DateTime',context!); lastModifiedBy = json['lastModifiedBy']; ownerId = json['ownerId']; slug = json['slug']; logoApproved = json['logoApproved']; isLocked = json['isLocked']; tier = JsonConverters.fromJson(json['tier'],'TechnologyTier',context!); lastStatusUpdate = JsonConverters.fromJson(json['lastStatusUpdate'],'DateTime',context!); organizationId = json['organizationId']; commentsPostId = json['commentsPostId']; viewCount = json['viewCount']; favCount = json['favCount']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'name': name, 'vendorName': vendorName, 'vendorUrl': vendorUrl, 'productUrl': productUrl, 'logoUrl': logoUrl, 'description': description, 'created': JsonConverters.toJson(created,'DateTime',context!), 'createdBy': createdBy, 'lastModified': JsonConverters.toJson(lastModified,'DateTime',context!), 'lastModifiedBy': lastModifiedBy, 'ownerId': ownerId, 'slug': slug, 'logoApproved': logoApproved, 'isLocked': isLocked, 'tier': JsonConverters.toJson(tier,'TechnologyTier',context!), 'lastStatusUpdate': JsonConverters.toJson(lastStatusUpdate,'DateTime',context!), 'organizationId': organizationId, 'commentsPostId': commentsPostId, 'viewCount': viewCount, 'favCount': favCount }); getTypeName() => "Technology"; TypeContext? context = _ctx; } abstract class TechnologyStackBase { int? id; String? name; String? vendorName; String? description; String? appUrl; String? screenshotUrl; DateTime? created; String? createdBy; DateTime? lastModified; String? lastModifiedBy; bool? isLocked; String? ownerId; String? slug; // @StringLength(2147483647) String? details; // @StringLength(2147483647) String? detailsHtml; DateTime? lastStatusUpdate; int? organizationId; int? commentsPostId; int? viewCount; int? favCount; TechnologyStackBase({this.id,this.name,this.vendorName,this.description,this.appUrl,this.screenshotUrl,this.created,this.createdBy,this.lastModified,this.lastModifiedBy,this.isLocked,this.ownerId,this.slug,this.details,this.detailsHtml,this.lastStatusUpdate,this.organizationId,this.commentsPostId,this.viewCount,this.favCount}); TechnologyStackBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; vendorName = json['vendorName']; description = json['description']; appUrl = json['appUrl']; screenshotUrl = json['screenshotUrl']; created = JsonConverters.fromJson(json['created'],'DateTime',context!); createdBy = json['createdBy']; lastModified = JsonConverters.fromJson(json['lastModified'],'DateTime',context!); lastModifiedBy = json['lastModifiedBy']; isLocked = json['isLocked']; ownerId = json['ownerId']; slug = json['slug']; details = json['details']; detailsHtml = json['detailsHtml']; lastStatusUpdate = JsonConverters.fromJson(json['lastStatusUpdate'],'DateTime',context!); organizationId = json['organizationId']; commentsPostId = json['commentsPostId']; viewCount = json['viewCount']; favCount = json['favCount']; return this; } Map toJson() => { 'id': id, 'name': name, 'vendorName': vendorName, 'description': description, 'appUrl': appUrl, 'screenshotUrl': screenshotUrl, 'created': JsonConverters.toJson(created,'DateTime',context!), 'createdBy': createdBy, 'lastModified': JsonConverters.toJson(lastModified,'DateTime',context!), 'lastModifiedBy': lastModifiedBy, 'isLocked': isLocked, 'ownerId': ownerId, 'slug': slug, 'details': details, 'detailsHtml': detailsHtml, 'lastStatusUpdate': JsonConverters.toJson(lastStatusUpdate,'DateTime',context!), 'organizationId': organizationId, 'commentsPostId': commentsPostId, 'viewCount': viewCount, 'favCount': favCount }; getTypeName() => "TechnologyStackBase"; TypeContext? context = _ctx; } class TechnologyStack extends TechnologyStackBase implements IConvertible { int? id; String? name; String? vendorName; String? description; String? appUrl; String? screenshotUrl; DateTime? created; String? createdBy; DateTime? lastModified; String? lastModifiedBy; bool? isLocked; String? ownerId; String? slug; // @StringLength(2147483647) String? details; // @StringLength(2147483647) String? detailsHtml; DateTime? lastStatusUpdate; int? organizationId; int? commentsPostId; int? viewCount; int? favCount; TechnologyStack({this.id,this.name,this.vendorName,this.description,this.appUrl,this.screenshotUrl,this.created,this.createdBy,this.lastModified,this.lastModifiedBy,this.isLocked,this.ownerId,this.slug,this.details,this.detailsHtml,this.lastStatusUpdate,this.organizationId,this.commentsPostId,this.viewCount,this.favCount}); TechnologyStack.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; name = json['name']; vendorName = json['vendorName']; description = json['description']; appUrl = json['appUrl']; screenshotUrl = json['screenshotUrl']; created = JsonConverters.fromJson(json['created'],'DateTime',context!); createdBy = json['createdBy']; lastModified = JsonConverters.fromJson(json['lastModified'],'DateTime',context!); lastModifiedBy = json['lastModifiedBy']; isLocked = json['isLocked']; ownerId = json['ownerId']; slug = json['slug']; details = json['details']; detailsHtml = json['detailsHtml']; lastStatusUpdate = JsonConverters.fromJson(json['lastStatusUpdate'],'DateTime',context!); organizationId = json['organizationId']; commentsPostId = json['commentsPostId']; viewCount = json['viewCount']; favCount = json['favCount']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'name': name, 'vendorName': vendorName, 'description': description, 'appUrl': appUrl, 'screenshotUrl': screenshotUrl, 'created': JsonConverters.toJson(created,'DateTime',context!), 'createdBy': createdBy, 'lastModified': JsonConverters.toJson(lastModified,'DateTime',context!), 'lastModifiedBy': lastModifiedBy, 'isLocked': isLocked, 'ownerId': ownerId, 'slug': slug, 'details': details, 'detailsHtml': detailsHtml, 'lastStatusUpdate': JsonConverters.toJson(lastStatusUpdate,'DateTime',context!), 'organizationId': organizationId, 'commentsPostId': commentsPostId, 'viewCount': viewCount, 'favCount': favCount }); getTypeName() => "TechnologyStack"; TypeContext? context = _ctx; } class UserActivity implements IConvertible { int? id; String? userName; int? karma; int? technologyCount; int? techStacksCount; int? postsCount; int? postUpVotes; int? postDownVotes; int? commentUpVotes; int? commentDownVotes; int? postCommentsCount; int? pinnedCommentCount; int? postReportCount; int? postCommentReportCount; DateTime? created; DateTime? modified; UserActivity({this.id,this.userName,this.karma,this.technologyCount,this.techStacksCount,this.postsCount,this.postUpVotes,this.postDownVotes,this.commentUpVotes,this.commentDownVotes,this.postCommentsCount,this.pinnedCommentCount,this.postReportCount,this.postCommentReportCount,this.created,this.modified}); UserActivity.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; userName = json['userName']; karma = json['karma']; technologyCount = json['technologyCount']; techStacksCount = json['techStacksCount']; postsCount = json['postsCount']; postUpVotes = json['postUpVotes']; postDownVotes = json['postDownVotes']; commentUpVotes = json['commentUpVotes']; commentDownVotes = json['commentDownVotes']; postCommentsCount = json['postCommentsCount']; pinnedCommentCount = json['pinnedCommentCount']; postReportCount = json['postReportCount']; postCommentReportCount = json['postCommentReportCount']; created = JsonConverters.fromJson(json['created'],'DateTime',context!); modified = JsonConverters.fromJson(json['modified'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'userName': userName, 'karma': karma, 'technologyCount': technologyCount, 'techStacksCount': techStacksCount, 'postsCount': postsCount, 'postUpVotes': postUpVotes, 'postDownVotes': postDownVotes, 'commentUpVotes': commentUpVotes, 'commentDownVotes': commentDownVotes, 'postCommentsCount': postCommentsCount, 'pinnedCommentCount': pinnedCommentCount, 'postReportCount': postReportCount, 'postCommentReportCount': postCommentReportCount, 'created': JsonConverters.toJson(created,'DateTime',context!), 'modified': JsonConverters.toJson(modified,'DateTime',context!) }; getTypeName() => "UserActivity"; TypeContext? context = _ctx; } class GetUserInfoResponse implements IConvertible { int? id; String? userName; DateTime? created; String? avatarUrl; List? techStacks; List? favoriteTechStacks; List? favoriteTechnologies; UserActivity? userActivity; ResponseStatus? responseStatus; GetUserInfoResponse({this.id,this.userName,this.created,this.avatarUrl,this.techStacks,this.favoriteTechStacks,this.favoriteTechnologies,this.userActivity,this.responseStatus}); GetUserInfoResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; userName = json['userName']; created = JsonConverters.fromJson(json['created'],'DateTime',context!); avatarUrl = json['avatarUrl']; techStacks = JsonConverters.fromJson(json['techStacks'],'List',context!); favoriteTechStacks = JsonConverters.fromJson(json['favoriteTechStacks'],'List',context!); favoriteTechnologies = JsonConverters.fromJson(json['favoriteTechnologies'],'List',context!); userActivity = JsonConverters.fromJson(json['userActivity'],'UserActivity',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'id': id, 'userName': userName, 'created': JsonConverters.toJson(created,'DateTime',context!), 'avatarUrl': avatarUrl, 'techStacks': JsonConverters.toJson(techStacks,'List',context!), 'favoriteTechStacks': JsonConverters.toJson(favoriteTechStacks,'List',context!), 'favoriteTechnologies': JsonConverters.toJson(favoriteTechnologies,'List',context!), 'userActivity': JsonConverters.toJson(userActivity,'UserActivity',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetUserInfoResponse"; TypeContext? context = _ctx; } // @Route("/userinfo/{Id}") class GetUserInfo implements IReturn, IGet, IConvertible { int? id; String? userName; GetUserInfo({this.id,this.userName}); GetUserInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; userName = json['userName']; return this; } Map toJson() => { 'id': id, 'userName': userName }; createResponse() => GetUserInfoResponse(); getResponseTypeName() => "GetUserInfoResponse"; getTypeName() => "GetUserInfo"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'TechnologyTier': TypeInfo(TypeOf.Enum, enumValues:TechnologyTier.values), 'TechnologyBase': TypeInfo(TypeOf.AbstractClass), 'Technology': TypeInfo(TypeOf.Class, create:() => Technology()), 'TechnologyStackBase': TypeInfo(TypeOf.AbstractClass), 'TechnologyStack': TypeInfo(TypeOf.Class, create:() => TechnologyStack()), 'UserActivity': TypeInfo(TypeOf.Class, create:() => UserActivity()), 'GetUserInfoResponse': TypeInfo(TypeOf.Class, create:() => GetUserInfoResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetUserInfo': TypeInfo(TypeOf.Class, create:() => GetUserInfo()), });