/* Options: Date: 2024-11-21 11:34:47 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: AddResource.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class AddResourceTypeResource implements IConvertible { /** * The resource id */ // @ApiMember(Description="The resource id") int? Id; /** * The priority of the resource. If no priority is set it will take random resource when booking a time. */ // @ApiMember(Description="The priority of the resource. If no priority is set it will take random resource when booking a time.") int? Priority; AddResourceTypeResource({this.Id,this.Priority}); AddResourceTypeResource.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Priority = json['Priority']; return this; } Map toJson() => { 'Id': Id, 'Priority': Priority }; getTypeName() => "AddResourceTypeResource"; TypeContext? context = _ctx; } // @Route("/resourcetypes/{Id}/addresource", "POST") // @ValidateRequest(Validator="IsAuthenticated") class AddResource implements IConvertible, IPost { /** * The company id */ // @ApiMember(Description="The company id", IsRequired=true) String? CompanyId; /** * The ResourceType id */ // @ApiMember(Description="The ResourceType id", IsRequired=true, ParameterType="path") int? Id; /** * The resources to be included */ // @ApiMember(Description="The resources to be included") List? Resources; AddResource({this.CompanyId,this.Id,this.Resources}); AddResource.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; Id = json['Id']; Resources = JsonConverters.fromJson(json['Resources'],'List',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'Id': Id, 'Resources': JsonConverters.toJson(Resources,'List',context!) }; getTypeName() => "AddResource"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'AddResourceTypeResource': TypeInfo(TypeOf.Class, create:() => AddResourceTypeResource()), 'AddResource': TypeInfo(TypeOf.Class, create:() => AddResource()), 'List': TypeInfo(TypeOf.Class, create:() => []), });