/* Options: Date: 2025-12-06 07:08:09 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: NoticeAgreementRequest.* //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 NoticeAgreementResponse implements IConvertible { ResponseStatus? ResponseStatus; NoticeAgreement? AgentAgreement; NoticeAgreementResponse({this.ResponseStatus,this.AgentAgreement}); NoticeAgreementResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); AgentAgreement = JsonConverters.fromJson(json['AgentAgreement'],'NoticeAgreement',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'AgentAgreement': JsonConverters.toJson(AgentAgreement,'NoticeAgreement',context!) }; getTypeName() => "NoticeAgreementResponse"; TypeContext? context = _ctx; } // @Route("/v1/noticeAgreement/{AgentId}", "GET,POST,OPTIONS") // @Route("/v1/noticeAgreement/{AgentId}/{Status}", "PUT,OPTIONS") class NoticeAgreementRequest implements IReturn, IConvertible, IGet { int? AgentId; String? Status; NoticeAgreementRequest({this.AgentId,this.Status}); NoticeAgreementRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { AgentId = json['AgentId']; Status = json['Status']; return this; } Map toJson() => { 'AgentId': AgentId, 'Status': Status }; createResponse() => NoticeAgreementResponse(); getResponseTypeName() => "NoticeAgreementResponse"; getTypeName() => "NoticeAgreementRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'NoticeAgreement': TypeInfo(TypeOf.Class, create:() => NoticeAgreement()), 'NoticeAgreementResponse': TypeInfo(TypeOf.Class, create:() => NoticeAgreementResponse()), 'NoticeAgreementRequest': TypeInfo(TypeOf.Class, create:() => NoticeAgreementRequest()), });