/* Options: Date: 2025-04-05 02:07:30 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetInactiveCompaniesReport.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum InactivityAction { ActivityReminder, FinalWarning, Delete, } class InactiveCompanyResult implements IConvertible { String? CompanyId; DateTime? LastActivityDate; DateTime? LastActivityNotificationDate; DateTime? DeletionTime; InactivityAction? Action; InactiveCompanyResult({this.CompanyId,this.LastActivityDate,this.LastActivityNotificationDate,this.DeletionTime,this.Action}); InactiveCompanyResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; LastActivityDate = JsonConverters.fromJson(json['LastActivityDate'],'DateTime',context!); LastActivityNotificationDate = JsonConverters.fromJson(json['LastActivityNotificationDate'],'DateTime',context!); DeletionTime = JsonConverters.fromJson(json['DeletionTime'],'DateTime',context!); Action = JsonConverters.fromJson(json['Action'],'InactivityAction',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'LastActivityDate': JsonConverters.toJson(LastActivityDate,'DateTime',context!), 'LastActivityNotificationDate': JsonConverters.toJson(LastActivityNotificationDate,'DateTime',context!), 'DeletionTime': JsonConverters.toJson(DeletionTime,'DateTime',context!), 'Action': JsonConverters.toJson(Action,'InactivityAction',context!) }; getTypeName() => "InactiveCompanyResult"; TypeContext? context = _ctx; } class InactiveCompaniesResponse implements IConvertible { List? ProcessedCompanies; InactiveCompaniesResponse({this.ProcessedCompanies}); InactiveCompaniesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ProcessedCompanies = JsonConverters.fromJson(json['ProcessedCompanies'],'List',context!); return this; } Map toJson() => { 'ProcessedCompanies': JsonConverters.toJson(ProcessedCompanies,'List',context!) }; getTypeName() => "InactiveCompaniesResponse"; TypeContext? context = _ctx; } // @Route("/superadmin/company/inactive/report", "GET") class GetInactiveCompaniesReport implements IReturn, IConvertible, IGet { int? Skip; int? Take; GetInactiveCompaniesReport({this.Skip,this.Take}); GetInactiveCompaniesReport.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Skip = json['Skip']; Take = json['Take']; return this; } Map toJson() => { 'Skip': Skip, 'Take': Take }; createResponse() => InactiveCompaniesResponse(); getResponseTypeName() => "InactiveCompaniesResponse"; getTypeName() => "GetInactiveCompaniesReport"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'InactivityAction': TypeInfo(TypeOf.Enum, enumValues:InactivityAction.values), 'InactiveCompanyResult': TypeInfo(TypeOf.Class, create:() => InactiveCompanyResult()), 'InactiveCompaniesResponse': TypeInfo(TypeOf.Class, create:() => InactiveCompaniesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetInactiveCompaniesReport': TypeInfo(TypeOf.Class, create:() => GetInactiveCompaniesReport()), });