/* Options: Date: 2024-12-22 12:17: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: GetOrganizationMemberInvites.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; 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 GetOrganizationMemberInvitesResponse implements IConvertible { List? results; ResponseStatus? responseStatus; GetOrganizationMemberInvitesResponse({this.results,this.responseStatus}); GetOrganizationMemberInvitesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { results = JsonConverters.fromJson(json['results'],'List',context!); responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'results': JsonConverters.toJson(results,'List',context!), 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "GetOrganizationMemberInvitesResponse"; TypeContext? context = _ctx; } // @Route("/orgs/{OrganizationId}/invites", "GET") class GetOrganizationMemberInvites implements IReturn, IGet, IConvertible { int? organizationId; GetOrganizationMemberInvites({this.organizationId}); GetOrganizationMemberInvites.fromJson(Map json) { fromMap(json); } fromMap(Map json) { organizationId = json['organizationId']; return this; } Map toJson() => { 'organizationId': organizationId }; createResponse() => GetOrganizationMemberInvitesResponse(); getResponseTypeName() => "GetOrganizationMemberInvitesResponse"; getTypeName() => "GetOrganizationMemberInvites"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'techstacks.io', types: { 'OrganizationMemberInvite': TypeInfo(TypeOf.Class, create:() => OrganizationMemberInvite()), 'GetOrganizationMemberInvitesResponse': TypeInfo(TypeOf.Class, create:() => GetOrganizationMemberInvitesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetOrganizationMemberInvites': TypeInfo(TypeOf.Class, create:() => GetOrganizationMemberInvites()), });