/* Options: Date: 2026-06-22 20:30:21 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: ImportHistoryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ImportBatchLog implements IConvertible { int? ImportBatchId; String? BatchUID; String? ImportType; String? FileName; String? Status; int? TotalRows; int? InsertedRows; int? UpdatedRows; int? SkippedRows; int? ErrorRows; String? CreatedBy; DateTime? CreatedAt; ImportBatchLog({this.ImportBatchId,this.BatchUID,this.ImportType,this.FileName,this.Status,this.TotalRows,this.InsertedRows,this.UpdatedRows,this.SkippedRows,this.ErrorRows,this.CreatedBy,this.CreatedAt}); ImportBatchLog.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ImportBatchId = json['ImportBatchId']; BatchUID = json['BatchUID']; ImportType = json['ImportType']; FileName = json['FileName']; Status = json['Status']; TotalRows = json['TotalRows']; InsertedRows = json['InsertedRows']; UpdatedRows = json['UpdatedRows']; SkippedRows = json['SkippedRows']; ErrorRows = json['ErrorRows']; CreatedBy = json['CreatedBy']; CreatedAt = JsonConverters.fromJson(json['CreatedAt'],'DateTime',context!); return this; } Map toJson() => { 'ImportBatchId': ImportBatchId, 'BatchUID': BatchUID, 'ImportType': ImportType, 'FileName': FileName, 'Status': Status, 'TotalRows': TotalRows, 'InsertedRows': InsertedRows, 'UpdatedRows': UpdatedRows, 'SkippedRows': SkippedRows, 'ErrorRows': ErrorRows, 'CreatedBy': CreatedBy, 'CreatedAt': JsonConverters.toJson(CreatedAt,'DateTime',context!) }; getTypeName() => "ImportBatchLog"; TypeContext? context = _ctx; } class ImportHistoryResponse implements IConvertible { List? Batches = []; ResponseStatus? ResponseStatus; ImportHistoryResponse({this.Batches,this.ResponseStatus}); ImportHistoryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Batches = JsonConverters.fromJson(json['Batches'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Batches': JsonConverters.toJson(Batches,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "ImportHistoryResponse"; TypeContext? context = _ctx; } // @Route("/v1/import/history", "GET") class ImportHistoryRequest implements IReturn, IConvertible, IGet { ImportHistoryRequest(); ImportHistoryRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => ImportHistoryResponse(); getResponseTypeName() => "ImportHistoryResponse"; getTypeName() => "ImportHistoryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'ImportBatchLog': TypeInfo(TypeOf.Class, create:() => ImportBatchLog()), 'ImportHistoryResponse': TypeInfo(TypeOf.Class, create:() => ImportHistoryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ImportHistoryRequest': TypeInfo(TypeOf.Class, create:() => ImportHistoryRequest()), });