/* Options: Date: 2025-12-06 07:05:33 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: NoticeReportRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class NoticeAgreement implements IConvertible { int? Id; int? AgentId; String? AgentName; String? Status; DateTime? SignedDate; DateTime? FirstViewed; DateTime? SnoozedDate; NoticeAgreement({this.Id,this.AgentId,this.AgentName,this.Status,this.SignedDate,this.FirstViewed,this.SnoozedDate}); NoticeAgreement.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; AgentId = json['AgentId']; AgentName = json['AgentName']; Status = json['Status']; SignedDate = JsonConverters.fromJson(json['SignedDate'],'DateTime',context!); FirstViewed = JsonConverters.fromJson(json['FirstViewed'],'DateTime',context!); SnoozedDate = JsonConverters.fromJson(json['SnoozedDate'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'AgentId': AgentId, 'AgentName': AgentName, 'Status': Status, 'SignedDate': JsonConverters.toJson(SignedDate,'DateTime',context!), 'FirstViewed': JsonConverters.toJson(FirstViewed,'DateTime',context!), 'SnoozedDate': JsonConverters.toJson(SnoozedDate,'DateTime',context!) }; getTypeName() => "NoticeAgreement"; TypeContext? context = _ctx; } class NoticeReportResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Notices = []; NoticeReportResponse({this.ResponseStatus,this.Notices}); NoticeReportResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Notices = JsonConverters.fromJson(json['Notices'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Notices': JsonConverters.toJson(Notices,'List',context!) }; getTypeName() => "NoticeReportResponse"; TypeContext? context = _ctx; } // @Route("/v1/GetNoticeReport/{NoticeType}", "GET,OPTIONS") // @Route("/v1/DisableNoticeReport/{NoticeType}/{AgentId}", "PUT,OPTIONS") class NoticeReportRequest implements IReturn, IConvertible, IGet { String? NoticeType; int? AgentId; NoticeReportRequest({this.NoticeType,this.AgentId}); NoticeReportRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { NoticeType = json['NoticeType']; AgentId = json['AgentId']; return this; } Map toJson() => { 'NoticeType': NoticeType, 'AgentId': AgentId }; createResponse() => NoticeReportResponse(); getResponseTypeName() => "NoticeReportResponse"; getTypeName() => "NoticeReportRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'NoticeAgreement': TypeInfo(TypeOf.Class, create:() => NoticeAgreement()), 'NoticeReportResponse': TypeInfo(TypeOf.Class, create:() => NoticeReportResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'NoticeReportRequest': TypeInfo(TypeOf.Class, create:() => NoticeReportRequest()), });