/* Options: Date: 2025-05-04 23:41:50 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: ImportPackage.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class PackageInfo implements IConvertible { List? flows; List? customerFields; List? endpointFields; List? systemFields; PackageInfo({this.flows,this.customerFields,this.endpointFields,this.systemFields}); PackageInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { flows = JsonConverters.fromJson(json['flows'],'List',context!); customerFields = JsonConverters.fromJson(json['customerFields'],'List',context!); endpointFields = JsonConverters.fromJson(json['endpointFields'],'List',context!); systemFields = JsonConverters.fromJson(json['systemFields'],'List',context!); return this; } Map toJson() => { 'flows': JsonConverters.toJson(flows,'List',context!), 'customerFields': JsonConverters.toJson(customerFields,'List',context!), 'endpointFields': JsonConverters.toJson(endpointFields,'List',context!), 'systemFields': JsonConverters.toJson(systemFields,'List',context!) }; getTypeName() => "PackageInfo"; TypeContext? context = _ctx; } /** * Import the specified package */ // @Route("/packages", "POST") // @Api(Description="Import the specified package") class ImportPackage implements IReturnVoid, IConvertible, IPost { /** * The account you want to import the package into */ // @ApiMember(Description="The account you want to import the package into") String? accountId; /** * The package you want to import (should be from a previous export) */ // @ApiMember(Description="The package you want to import (should be from a previous export)") PackageInfo? package; ImportPackage({this.accountId,this.package}); ImportPackage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; package = JsonConverters.fromJson(json['package'],'PackageInfo',context!); return this; } Map toJson() => { 'accountId': accountId, 'package': JsonConverters.toJson(package,'PackageInfo',context!) }; createResponse() {} getTypeName() => "ImportPackage"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'PackageInfo': TypeInfo(TypeOf.Class, create:() => PackageInfo()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'FlowInfo': TypeInfo(TypeOf.Class, create:() => FlowInfo()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomerDataField': TypeInfo(TypeOf.Class, create:() => CustomerDataField()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EndpointDataField': TypeInfo(TypeOf.Class, create:() => EndpointDataField()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SystemSettingsField': TypeInfo(TypeOf.Class, create:() => SystemSettingsField()), 'ImportPackage': TypeInfo(TypeOf.Class, create:() => ImportPackage()), });