/* Options: Date: 2026-06-22 21:47:05 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: ImportErrorsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ImportBatchErrorRow implements IConvertible { int? RowNumber; String? Field; String? Message; ImportBatchErrorRow({this.RowNumber,this.Field,this.Message}); ImportBatchErrorRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RowNumber = json['RowNumber']; Field = json['Field']; Message = json['Message']; return this; } Map toJson() => { 'RowNumber': RowNumber, 'Field': Field, 'Message': Message }; getTypeName() => "ImportBatchErrorRow"; TypeContext? context = _ctx; } class ImportErrorsResponse implements IConvertible { List? Rows = []; ResponseStatus? ResponseStatus; ImportErrorsResponse({this.Rows,this.ResponseStatus}); ImportErrorsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Rows = JsonConverters.fromJson(json['Rows'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Rows': JsonConverters.toJson(Rows,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ImportErrorsResponse"; TypeContext? context = _ctx; } // @Route("/v1/import/{ImportBatchId}/errors", "GET") class ImportErrorsRequest implements IReturn, IConvertible, IGet { int? ImportBatchId; ImportErrorsRequest({this.ImportBatchId}); ImportErrorsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ImportBatchId = json['ImportBatchId']; return this; } Map toJson() => { 'ImportBatchId': ImportBatchId }; createResponse() => ImportErrorsResponse(); getResponseTypeName() => "ImportErrorsResponse"; getTypeName() => "ImportErrorsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ImportBatchErrorRow': TypeInfo(TypeOf.Class, create:() => ImportBatchErrorRow()), 'ImportErrorsResponse': TypeInfo(TypeOf.Class, create:() => ImportErrorsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ImportErrorsRequest': TypeInfo(TypeOf.Class, create:() => ImportErrorsRequest()), });