/* Options: Date: 2024-05-02 05:33:58 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: GetUserOrganizations.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class OrganizationMember implements IConvertible { int? id; int? organizationId; int? userId; String? userName; bool? isOwner; bool? isModerator; bool? denyAll; bool? denyPosts; bool? denyComments; String? notes; OrganizationMember({this.id,this.organizationId,this.userId,this.userName,this.isOwner,this.isModerator,this.denyAll,this.denyPosts,this.denyComments,this.notes}); OrganizationMember.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; organizationId = json['organizationId']; userId = json['userId']; userName = json['userName']; isOwner = json['isOwner']; isModerator = json['isModerator']; denyAll = json['denyAll']; denyPosts = json['denyPosts']; denyComments = json['denyComments']; notes = json['notes']; return this; } Map toJson() => { 'id': id, 'organizationId': organizationId, 'userId': userId, 'userName': userName, 'isOwner': isOwner, 'isModerator': isModerator, 'denyAll': denyAll, 'denyPosts': denyPosts, 'denyComments': denyComments, 'notes': notes }; getTypeName() => "OrganizationMember"; TypeContext? context = _ctx; } class OrganizationMemberInvite implements IConvertible { int? id; int? organizationId; int? userId; String? userName; DateTime? dismissed; OrganizationMemberInvite({this.id,this.organizationId,this.userId,this.userName,this.dismissed}); OrganizationMemberInvite.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; organizationId = json['organizationId']; userId = json['userId']; userName = json['userName']; dismissed = JsonConverters.fromJson(json['dismissed'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'organizationId': organizationId, 'userId': userId, 'userName': userName, 'dismissed': JsonConverters.toJson(dismissed,'DateTime',context!) }; getTypeName() => "OrganizationMemberInvite"; TypeContext? context = _ctx; } class OrganizationSubscription implements IConvertible { int? id; int? organizationId; int? userId; String? userName; List? postTypes; int? frequencyDays; int? lastSyncedId; DateTime? lastSynced; DateTime? created; OrganizationSubscription({this.id,this.organizationId,this.userId,this.userName,this.postTypes,this.frequencyDays,this.lastSyncedId,this.lastSynced,this.created}); OrganizationSubscription.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; organizationId = json['organizationId']; userId = json['userId']; userName = json['userName']; postTypes = JsonConverters.fromJson(json['postTypes'],'List',context!); frequencyDays = json['frequencyDays']; lastSyncedId = json['lastSyncedId']; lastSynced = JsonConverters.fromJson(json['lastSynced'],'DateTime',context!); created = JsonConverters.fromJson(json['created'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'organizationId': organizationId, 'userId': userId, 'userName': userName, 'postTypes': JsonConverters.toJson(postTypes,'List',context!), 'frequencyDays': frequencyDays, 'lastSyncedId': lastSyncedId, 'lastSynced': JsonConverters.toJson(lastSynced,'DateTime',context!), 'created': JsonConverters.toJson(created,'DateTime',context!) }; getTypeName() => "OrganizationSubscription"; TypeContext? context = _ctx; } class GetUserOrganizationsResponse implements IConvertible { List? members; List? memberInvites; List? subscriptions; GetUserOrganizationsResponse({this.members,this.memberInvites,this.subscriptions}); GetUserOrganizationsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { members = JsonConverters.fromJson(json['members'],'List',context!); memberInvites = JsonConverters.fromJson(json['memberInvites'],'List',context!); subscriptions = JsonConverters.fromJson(json['subscriptions'],'List',context!); return this; } Map toJson() => { 'members': JsonConverters.toJson(members,'List',context!), 'memberInvites': JsonConverters.toJson(memberInvites,'List',context!), 'subscriptions': JsonConverters.toJson(subscriptions,'List',context!) }; getTypeName() => "GetUserOrganizationsResponse"; TypeContext? context = _ctx; } // @Route("/user/organizations") class GetUserOrganizations implements IReturn, IGet, IConvertible { GetUserOrganizations(); GetUserOrganizations.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => GetUserOrganizationsResponse(); getResponseTypeName() => "GetUserOrganizationsResponse"; getTypeName() => "GetUserOrganizations"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'OrganizationMember': TypeInfo(TypeOf.Class, create:() => OrganizationMember()), 'OrganizationMemberInvite': TypeInfo(TypeOf.Class, create:() => OrganizationMemberInvite()), 'OrganizationSubscription': TypeInfo(TypeOf.Class, create:() => OrganizationSubscription()), 'GetUserOrganizationsResponse': TypeInfo(TypeOf.Class, create:() => GetUserOrganizationsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetUserOrganizations': TypeInfo(TypeOf.Class, create:() => GetUserOrganizations()), });