/* Options: Date: 2024-12-15 20:37:36 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: InviteGuestRequest.* //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 Invitation implements IConvertible { String? firstName; String? lastName; String? email; String? id; Invitation({this.firstName,this.lastName,this.email,this.id}); Invitation.fromJson(Map json) { fromMap(json); } fromMap(Map json) { firstName = json['firstName']; lastName = json['lastName']; email = json['email']; id = json['id']; return this; } Map toJson() => { 'firstName': firstName, 'lastName': lastName, 'email': email, 'id': id }; getTypeName() => "Invitation"; TypeContext? context = _ctx; } class InviteGuestResponse implements IConvertible { ResponseStatus? responseStatus; Invitation? invitation; InviteGuestResponse({this.responseStatus,this.invitation}); InviteGuestResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); invitation = JsonConverters.fromJson(json['invitation'],'Invitation',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'invitation': JsonConverters.toJson(invitation,'Invitation',context!) }; getTypeName() => "InviteGuestResponse"; TypeContext? context = _ctx; } // @Route("/users/invite", "POST") class InviteGuestRequest extends PostOperationUnTenanted implements IReturn, IConvertible { String? email; InviteGuestRequest({this.email}); InviteGuestRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); email = json['email']; return this; } Map toJson() => super.toJson()..addAll({ 'email': email }); createResponse() => InviteGuestResponse(); getResponseTypeName() => "InviteGuestResponse"; getTypeName() => "InviteGuestRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'Invitation': TypeInfo(TypeOf.Class, create:() => Invitation()), 'InviteGuestResponse': TypeInfo(TypeOf.Class, create:() => InviteGuestResponse()), 'InviteGuestRequest': TypeInfo(TypeOf.Class, create:() => InviteGuestRequest()), });