/* Options: Date: 2026-08-12 21:02:49 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: RecordSeriesSaveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class RecordsOkResponse implements IConvertible { ResponseStatus? ResponseStatus; bool? Ok; int? Id; String? Key; List? Matches = []; RecordsOkResponse({this.ResponseStatus,this.Ok,this.Id,this.Key,this.Matches}); RecordsOkResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Ok = json['Ok']; Id = json['Id']; Key = json['Key']; Matches = JsonConverters.fromJson(json['Matches'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Ok': Ok, 'Id': Id, 'Key': Key, 'Matches': JsonConverters.toJson(Matches,'List',context!) }; getTypeName() => "RecordsOkResponse"; TypeContext? context = _ctx; } // @Route("/v1/records/series", "POST,OPTIONS") // @Route("/v1/records/series/{SeriesId}", "PATCH,PUT,OPTIONS") class RecordSeriesSaveRequest implements IReturn, IConvertible, IPost { int? SeriesId; String? Code; String? Name; int? Years; bool? Permanent; String? RetClass; String? TriggerEvent; String? Method; bool? ImageAndDestroy; String? Citation; String? FieldsJson; RecordSeriesSaveRequest({this.SeriesId,this.Code,this.Name,this.Years,this.Permanent,this.RetClass,this.TriggerEvent,this.Method,this.ImageAndDestroy,this.Citation,this.FieldsJson}); RecordSeriesSaveRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SeriesId = json['SeriesId']; Code = json['Code']; Name = json['Name']; Years = json['Years']; Permanent = json['Permanent']; RetClass = json['RetClass']; TriggerEvent = json['TriggerEvent']; Method = json['Method']; ImageAndDestroy = json['ImageAndDestroy']; Citation = json['Citation']; FieldsJson = json['FieldsJson']; return this; } Map toJson() => { 'SeriesId': SeriesId, 'Code': Code, 'Name': Name, 'Years': Years, 'Permanent': Permanent, 'RetClass': RetClass, 'TriggerEvent': TriggerEvent, 'Method': Method, 'ImageAndDestroy': ImageAndDestroy, 'Citation': Citation, 'FieldsJson': FieldsJson }; createResponse() => RecordsOkResponse(); getResponseTypeName() => "RecordsOkResponse"; getTypeName() => "RecordSeriesSaveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'RecordsOkResponse': TypeInfo(TypeOf.Class, create:() => RecordsOkResponse()), 'RecordSeriesSaveRequest': TypeInfo(TypeOf.Class, create:() => RecordSeriesSaveRequest()), });