/* Options: Date: 2026-06-22 21:45:29 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: ImportPreviewRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ImportRowResult implements IConvertible { int? Line; String? Action; String? Field; String? Message; String? Summary; ImportRowResult({this.Line,this.Action,this.Field,this.Message,this.Summary}); ImportRowResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Line = json['Line']; Action = json['Action']; Field = json['Field']; Message = json['Message']; Summary = json['Summary']; return this; } Map toJson() => { 'Line': Line, 'Action': Action, 'Field': Field, 'Message': Message, 'Summary': Summary }; getTypeName() => "ImportRowResult"; TypeContext? context = _ctx; } class ImportResult implements IConvertible { String? ImportType; String? FileName; bool? DryRun; int? ImportBatchId; int? TotalRows; int? NewRows; int? UpdatedRows; int? SkippedRows; int? ErrorRows; List? Rows = []; ResponseStatus? ResponseStatus; ImportResult({this.ImportType,this.FileName,this.DryRun,this.ImportBatchId,this.TotalRows,this.NewRows,this.UpdatedRows,this.SkippedRows,this.ErrorRows,this.Rows,this.ResponseStatus}); ImportResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ImportType = json['ImportType']; FileName = json['FileName']; DryRun = json['DryRun']; ImportBatchId = json['ImportBatchId']; TotalRows = json['TotalRows']; NewRows = json['NewRows']; UpdatedRows = json['UpdatedRows']; SkippedRows = json['SkippedRows']; ErrorRows = json['ErrorRows']; Rows = JsonConverters.fromJson(json['Rows'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ImportType': ImportType, 'FileName': FileName, 'DryRun': DryRun, 'ImportBatchId': ImportBatchId, 'TotalRows': TotalRows, 'NewRows': NewRows, 'UpdatedRows': UpdatedRows, 'SkippedRows': SkippedRows, 'ErrorRows': ErrorRows, 'Rows': JsonConverters.toJson(Rows,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ImportResult"; TypeContext? context = _ctx; } // @Route("/v1/import/{Type}/preview", "POST,OPTIONS") class ImportPreviewRequest implements IReturn, IConvertible, IPost { String? Type; ImportPreviewRequest({this.Type}); ImportPreviewRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Type = json['Type']; return this; } Map toJson() => { 'Type': Type }; createResponse() => ImportResult(); getResponseTypeName() => "ImportResult"; getTypeName() => "ImportPreviewRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ImportRowResult': TypeInfo(TypeOf.Class, create:() => ImportRowResult()), 'ImportResult': TypeInfo(TypeOf.Class, create:() => ImportResult()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ImportPreviewRequest': TypeInfo(TypeOf.Class, create:() => ImportPreviewRequest()), });