/* Options: Date: 2024-10-18 04:18:28 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://digiofficeapigateway.deltares.nl/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AddStatistic.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; enum ProgramName { DO4Outlook, DO4Word, DO4Excel, DO4PowerPoint, ITS, Other, } enum Action { Start, Command, Other, } /** * Add a statistic entity. */ // @Route("/statistics", "POST") // @Api(Description="Add a statistic entity.") class AddStatistic implements IReturnVoid, IConvertible { /** * Computername */ // @ApiMember(Description="Computername", IsRequired=true) String? Computer; /** * Program for the statistic entry */ // @ApiMember(Description="Program for the statistic entry", IsRequired=true) ProgramName? ProgramName; /** * Version of the program */ // @ApiMember(Description="Version of the program") String? ProgramVersion; /** * Action of statistic */ // @ApiMember(Description="Action of statistic", IsRequired=true) Action? Action; /** * First parameter */ // @ApiMember(Description="First parameter", IsRequired=true) String? Param1; /** * Second parameter */ // @ApiMember(Description="Second parameter") String? Param2; AddStatistic({this.Computer,this.ProgramName,this.ProgramVersion,this.Action,this.Param1,this.Param2}); AddStatistic.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Computer = json['Computer']; ProgramName = JsonConverters.fromJson(json['ProgramName'],'ProgramName',context!); ProgramVersion = json['ProgramVersion']; Action = JsonConverters.fromJson(json['Action'],'Action',context!); Param1 = json['Param1']; Param2 = json['Param2']; return this; } Map toJson() => { 'Computer': Computer, 'ProgramName': JsonConverters.toJson(ProgramName,'ProgramName',context!), 'ProgramVersion': ProgramVersion, 'Action': JsonConverters.toJson(Action,'Action',context!), 'Param1': Param1, 'Param2': Param2 }; createResponse() {} getTypeName() => "AddStatistic"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: { 'ProgramName': TypeInfo(TypeOf.Enum, enumValues:ProgramName.values), 'Action': TypeInfo(TypeOf.Enum, enumValues:Action.values), 'AddStatistic': TypeInfo(TypeOf.Class, create:() => AddStatistic()), });