/* Options: Date: 2025-05-05 01:50:05 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ListReports.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class ReportInfo implements IConvertible { String? id; String? name; ReportStatuses? status; String? statusMessage; String? dateCreated; String? dateUpdated; String? downloadLink; String? jobId; String? emailAddressToNotify; String? server; ReportInfo({this.id,this.name,this.status,this.statusMessage,this.dateCreated,this.dateUpdated,this.downloadLink,this.jobId,this.emailAddressToNotify,this.server}); ReportInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; status = JsonConverters.fromJson(json['status'],'ReportStatuses',context!); statusMessage = json['statusMessage']; dateCreated = json['dateCreated']; dateUpdated = json['dateUpdated']; downloadLink = json['downloadLink']; jobId = json['jobId']; emailAddressToNotify = json['emailAddressToNotify']; server = json['server']; return this; } Map toJson() => { 'id': id, 'name': name, 'status': JsonConverters.toJson(status,'ReportStatuses',context!), 'statusMessage': statusMessage, 'dateCreated': dateCreated, 'dateUpdated': dateUpdated, 'downloadLink': downloadLink, 'jobId': jobId, 'emailAddressToNotify': emailAddressToNotify, 'server': server }; getTypeName() => "ReportInfo"; TypeContext? context = _ctx; } class ListReportsResponse implements IConvertible { List? reports; ListReportsResponse({this.reports}); ListReportsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { reports = JsonConverters.fromJson(json['reports'],'List',context!); return this; } Map toJson() => { 'reports': JsonConverters.toJson(reports,'List',context!) }; getTypeName() => "ListReportsResponse"; TypeContext? context = _ctx; } /** * Returns all of the active/completed reports for the current user */ // @Route("/reports", "GET") // @Api(Description="Returns all of the active/completed reports for the current user") class ListReports implements IReturn, IConvertible, IGet { String? accountId; ListReports({this.accountId}); ListReports.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; return this; } Map toJson() => { 'accountId': accountId }; createResponse() => ListReportsResponse(); getResponseTypeName() => "ListReportsResponse"; getTypeName() => "ListReports"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'ReportInfo': TypeInfo(TypeOf.Class, create:() => ReportInfo()), 'ReportStatuses': TypeInfo(TypeOf.Class, create:() => ReportStatuses()), 'ListReportsResponse': TypeInfo(TypeOf.Class, create:() => ListReportsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ListReports': TypeInfo(TypeOf.Class, create:() => ListReports()), });