/* Options: Date: 2024-07-03 13:03:06 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateApiKeySuperAdminUser.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } // @Route("/superadmin/apikey", "POST") // @ApiResponse(Description="", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not allowed to perform the action", StatusCode=401) class CreateApiKeySuperAdminUser implements ICompany, IConvertible, IPost { /** * Enter the companyId for the customer */ // @ApiMember(Description="Enter the companyId for the customer", IsRequired=true, ParameterType="query") String? CompanyId; // @ApiMember(IsRequired=true) String? FirstName; // @ApiMember(IsRequired=true) String? LastName; // @ApiMember(IsRequired=true) String? ClientId; // @ApiMember(IsRequired=true) List? RedirectUrls; // @ApiMember(IsRequired=true) String? ContactEmail; // @ApiMember(IsRequired=true) String? ContactPhone; // @ApiMember() String? Notes; // @ApiMember() List? WebOrigins; // @ApiMember() List? DefaultClientScopes; // @ApiMember() List? OptionalClientScopes; CreateApiKeySuperAdminUser({this.CompanyId,this.FirstName,this.LastName,this.ClientId,this.RedirectUrls,this.ContactEmail,this.ContactPhone,this.Notes,this.WebOrigins,this.DefaultClientScopes,this.OptionalClientScopes}); CreateApiKeySuperAdminUser.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; FirstName = json['FirstName']; LastName = json['LastName']; ClientId = json['ClientId']; RedirectUrls = JsonConverters.fromJson(json['RedirectUrls'],'List',context!); ContactEmail = json['ContactEmail']; ContactPhone = json['ContactPhone']; Notes = json['Notes']; WebOrigins = JsonConverters.fromJson(json['WebOrigins'],'List',context!); DefaultClientScopes = JsonConverters.fromJson(json['DefaultClientScopes'],'List',context!); OptionalClientScopes = JsonConverters.fromJson(json['OptionalClientScopes'],'List',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'FirstName': FirstName, 'LastName': LastName, 'ClientId': ClientId, 'RedirectUrls': JsonConverters.toJson(RedirectUrls,'List',context!), 'ContactEmail': ContactEmail, 'ContactPhone': ContactPhone, 'Notes': Notes, 'WebOrigins': JsonConverters.toJson(WebOrigins,'List',context!), 'DefaultClientScopes': JsonConverters.toJson(DefaultClientScopes,'List',context!), 'OptionalClientScopes': JsonConverters.toJson(OptionalClientScopes,'List',context!) }; getTypeName() => "CreateApiKeySuperAdminUser"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'CreateApiKeySuperAdminUser': TypeInfo(TypeOf.Class, create:() => CreateApiKeySuperAdminUser()), });