/* Options: Date: 2024-12-22 12:03:04 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: GetOrganizationMembers.* //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 GetOrganizationMembersResponse implements IConvertible { int? organizationId; List? results; ResponseStatus? responseStatus; GetOrganizationMembersResponse({this.organizationId,this.results,this.responseStatus}); GetOrganizationMembersResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { organizationId = json['organizationId']; results = JsonConverters.fromJson(json['results'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'organizationId': organizationId, 'results': JsonConverters.toJson(results,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetOrganizationMembersResponse"; TypeContext? context = _ctx; } // @Route("/orgs/{Id}/members", "GET") class GetOrganizationMembers implements IReturn, IGet, IConvertible { int? id; GetOrganizationMembers({this.id}); GetOrganizationMembers.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; return this; } Map toJson() => { 'id': id }; createResponse() => GetOrganizationMembersResponse(); getResponseTypeName() => "GetOrganizationMembersResponse"; getTypeName() => "GetOrganizationMembers"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'OrganizationMember': TypeInfo(TypeOf.Class, create:() => OrganizationMember()), 'GetOrganizationMembersResponse': TypeInfo(TypeOf.Class, create:() => GetOrganizationMembersResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetOrganizationMembers': TypeInfo(TypeOf.Class, create:() => GetOrganizationMembers()), });