/* Options: Date: 2024-12-15 20:32:01 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://staging-api.billiecart.com.au //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: InviteOrganisationMemberRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PostOperationUnTenanted implements IPost { PostOperationUnTenanted(); PostOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PostOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } class Organisation implements IIdentifiableResource, IConvertible { String? displayName; List? owners; bool? isDefault; String? id; Organisation({this.displayName,this.owners,this.isDefault,this.id}); Organisation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { displayName = json['displayName']; owners = JsonConverters.fromJson(json['owners'],'List',context!); isDefault = json['isDefault']; id = json['id']; return this; } Map toJson() => { 'displayName': displayName, 'owners': JsonConverters.toJson(owners,'List',context!), 'isDefault': isDefault, 'id': id }; getTypeName() => "Organisation"; TypeContext? context = _ctx; } abstract class IIdentifiableResource { String? id; } class InviteOrganisationMemberResponse implements IConvertible { ResponseStatus? responseStatus; Organisation? organisation; InviteOrganisationMemberResponse({this.responseStatus,this.organisation}); InviteOrganisationMemberResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); organisation = JsonConverters.fromJson(json['organisation'],'Organisation',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'organisation': JsonConverters.toJson(organisation,'Organisation',context!) }; getTypeName() => "InviteOrganisationMemberResponse"; TypeContext? context = _ctx; } // @Route("/organisations/{Id}/members", "POST") class InviteOrganisationMemberRequest extends PostOperationUnTenanted implements IReturn, IConvertible { String? id; String? emailAddress; InviteOrganisationMemberRequest({this.id,this.emailAddress}); InviteOrganisationMemberRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; emailAddress = json['emailAddress']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id, 'emailAddress': emailAddress }); createResponse() => InviteOrganisationMemberResponse(); getResponseTypeName() => "InviteOrganisationMemberResponse"; getTypeName() => "InviteOrganisationMemberRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'Organisation': TypeInfo(TypeOf.Class, create:() => Organisation()), 'IIdentifiableResource': TypeInfo(TypeOf.Interface), 'InviteOrganisationMemberResponse': TypeInfo(TypeOf.Class, create:() => InviteOrganisationMemberResponse()), 'InviteOrganisationMemberRequest': TypeInfo(TypeOf.Class, create:() => InviteOrganisationMemberRequest()), });