/* Options: Date: 2025-12-06 07:07:14 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://business-api.brovs.com //GlobalNamespace: BusinessApi //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ReplyToStaffInvitationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ library BusinessApi; import 'package:servicestack/servicestack.dart'; enum StaffInvitationReply { Accept, Deny, } enum StaffRole { Owner, Admin, Regular, } enum BusinessRole { Owner, Manager, Sales, Marketing, Other, } class StaffDto implements IConvertible { int? id; String? firstName; String? lastName; String? email; StaffRole? role; int? placeId; int? businessId; int? userId; String? placeName; String? businessName; String? mobileNumber; BusinessRole? businessRole; DateTime? lastActiveOn; StaffDto({this.id,this.firstName,this.lastName,this.email,this.role,this.placeId,this.businessId,this.userId,this.placeName,this.businessName,this.mobileNumber,this.businessRole,this.lastActiveOn}); StaffDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; firstName = json['firstName']; lastName = json['lastName']; email = json['email']; role = JsonConverters.fromJson(json['role'],'StaffRole',context!); placeId = json['placeId']; businessId = json['businessId']; userId = json['userId']; placeName = json['placeName']; businessName = json['businessName']; mobileNumber = json['mobileNumber']; businessRole = JsonConverters.fromJson(json['businessRole'],'BusinessRole',context!); lastActiveOn = JsonConverters.fromJson(json['lastActiveOn'],'DateTime',context!); return this; } Map toJson() => { 'id': id, 'firstName': firstName, 'lastName': lastName, 'email': email, 'role': JsonConverters.toJson(role,'StaffRole',context!), 'placeId': placeId, 'businessId': businessId, 'userId': userId, 'placeName': placeName, 'businessName': businessName, 'mobileNumber': mobileNumber, 'businessRole': JsonConverters.toJson(businessRole,'BusinessRole',context!), 'lastActiveOn': JsonConverters.toJson(lastActiveOn,'DateTime',context!) }; getTypeName() => "StaffDto"; TypeContext? context = _ctx; } class ReplyToStaffInvitationResponse implements IConvertible { int? deniedStaffInvitationId; StaffDto? acceptedStaff; ReplyToStaffInvitationResponse({this.deniedStaffInvitationId,this.acceptedStaff}); ReplyToStaffInvitationResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { deniedStaffInvitationId = json['deniedStaffInvitationId']; acceptedStaff = JsonConverters.fromJson(json['acceptedStaff'],'StaffDto',context!); return this; } Map toJson() => { 'deniedStaffInvitationId': deniedStaffInvitationId, 'acceptedStaff': JsonConverters.toJson(acceptedStaff,'StaffDto',context!) }; getTypeName() => "ReplyToStaffInvitationResponse"; TypeContext? context = _ctx; } // @Route("/staff/reply", "POST") class ReplyToStaffInvitationRequest implements IReturn, IPost, IConvertible { int? staffInvitationId; StaffInvitationReply? reply; ReplyToStaffInvitationRequest({this.staffInvitationId,this.reply}); ReplyToStaffInvitationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { staffInvitationId = json['staffInvitationId']; reply = JsonConverters.fromJson(json['reply'],'StaffInvitationReply',context!); return this; } Map toJson() => { 'staffInvitationId': staffInvitationId, 'reply': JsonConverters.toJson(reply,'StaffInvitationReply',context!) }; createResponse() => ReplyToStaffInvitationResponse(); getResponseTypeName() => "ReplyToStaffInvitationResponse"; getTypeName() => "ReplyToStaffInvitationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'BusinessApi', types: { 'StaffInvitationReply': TypeInfo(TypeOf.Enum, enumValues:StaffInvitationReply.values), 'StaffRole': TypeInfo(TypeOf.Enum, enumValues:StaffRole.values), 'BusinessRole': TypeInfo(TypeOf.Enum, enumValues:BusinessRole.values), 'StaffDto': TypeInfo(TypeOf.Class, create:() => StaffDto()), 'ReplyToStaffInvitationResponse': TypeInfo(TypeOf.Class, create:() => ReplyToStaffInvitationResponse()), 'ReplyToStaffInvitationRequest': TypeInfo(TypeOf.Class, create:() => ReplyToStaffInvitationRequest()), });