/* Options: Date: 2024-12-22 12:58:30 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: AddOrganizationMember.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AddOrganizationMemberResponse implements IConvertible { ResponseStatus? responseStatus; AddOrganizationMemberResponse({this.responseStatus}); AddOrganizationMemberResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "AddOrganizationMemberResponse"; TypeContext? context = _ctx; } // @Route("/orgs/{OrganizationId}/members", "POST") class AddOrganizationMember implements IReturn, IPost, IConvertible { int? organizationId; String? userName; bool? isOwner; bool? isModerator; bool? denyPosts; bool? denyComments; bool? denyAll; String? notes; AddOrganizationMember({this.organizationId,this.userName,this.isOwner,this.isModerator,this.denyPosts,this.denyComments,this.denyAll,this.notes}); AddOrganizationMember.fromJson(Map json) { fromMap(json); } fromMap(Map json) { organizationId = json['organizationId']; userName = json['userName']; isOwner = json['isOwner']; isModerator = json['isModerator']; denyPosts = json['denyPosts']; denyComments = json['denyComments']; denyAll = json['denyAll']; notes = json['notes']; return this; } Map toJson() => { 'organizationId': organizationId, 'userName': userName, 'isOwner': isOwner, 'isModerator': isModerator, 'denyPosts': denyPosts, 'denyComments': denyComments, 'denyAll': denyAll, 'notes': notes }; createResponse() => AddOrganizationMemberResponse(); getResponseTypeName() => "AddOrganizationMemberResponse"; getTypeName() => "AddOrganizationMember"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'AddOrganizationMemberResponse': TypeInfo(TypeOf.Class, create:() => AddOrganizationMemberResponse()), 'AddOrganizationMember': TypeInfo(TypeOf.Class, create:() => AddOrganizationMember()), });