/* Options: Date: 2026-08-01 06:30:32 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: CoverageSelfSwapRespondRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class CoverageSelfEligibility implements IConvertible { String? Tone; String? Text; bool? CanClaim; String? ClaimLabel; CoverageSelfEligibility({this.Tone,this.Text,this.CanClaim,this.ClaimLabel}); CoverageSelfEligibility.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Tone = json['Tone']; Text = json['Text']; CanClaim = json['CanClaim']; ClaimLabel = json['ClaimLabel']; return this; } Map toJson() => { 'Tone': Tone, 'Text': Text, 'CanClaim': CanClaim, 'ClaimLabel': ClaimLabel }; getTypeName() => "CoverageSelfEligibility"; TypeContext? context = _ctx; } class CoverageSelfMatrixRow implements IConvertible { String? Name; String? Note; String? Tone; CoverageSelfMatrixRow({this.Name,this.Note,this.Tone}); CoverageSelfMatrixRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Note = json['Note']; Tone = json['Tone']; return this; } Map toJson() => { 'Name': Name, 'Note': Note, 'Tone': Tone }; getTypeName() => "CoverageSelfMatrixRow"; TypeContext? context = _ctx; } class CoverageSelfCard implements IConvertible { int? CoverageGapId; String? Kind; String? Status; String? ShiftDay; String? ShiftWindow; DateTime? ShiftStartUtc; String? Site; String? RoleNeeded; String? ExpiryLabel; String? PosterName; int? EligibleCount; int? IneligibleCount; CoverageSelfEligibility? MyEligibility; List? Matrix = []; String? SwapState; String? SwapFromName; String? SwapTargetName; String? OfferShift; String? WantShift; bool? ConflictOk; String? ConflictLabel; bool? CanRespond; CoverageSelfCard({this.CoverageGapId,this.Kind,this.Status,this.ShiftDay,this.ShiftWindow,this.ShiftStartUtc,this.Site,this.RoleNeeded,this.ExpiryLabel,this.PosterName,this.EligibleCount,this.IneligibleCount,this.MyEligibility,this.Matrix,this.SwapState,this.SwapFromName,this.SwapTargetName,this.OfferShift,this.WantShift,this.ConflictOk,this.ConflictLabel,this.CanRespond}); CoverageSelfCard.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CoverageGapId = json['CoverageGapId']; Kind = json['Kind']; Status = json['Status']; ShiftDay = json['ShiftDay']; ShiftWindow = json['ShiftWindow']; ShiftStartUtc = JsonConverters.fromJson(json['ShiftStartUtc'],'DateTime',context!); Site = json['Site']; RoleNeeded = json['RoleNeeded']; ExpiryLabel = json['ExpiryLabel']; PosterName = json['PosterName']; EligibleCount = json['EligibleCount']; IneligibleCount = json['IneligibleCount']; MyEligibility = JsonConverters.fromJson(json['MyEligibility'],'CoverageSelfEligibility',context!); Matrix = JsonConverters.fromJson(json['Matrix'],'List',context!); SwapState = json['SwapState']; SwapFromName = json['SwapFromName']; SwapTargetName = json['SwapTargetName']; OfferShift = json['OfferShift']; WantShift = json['WantShift']; ConflictOk = json['ConflictOk']; ConflictLabel = json['ConflictLabel']; CanRespond = json['CanRespond']; return this; } Map toJson() => { 'CoverageGapId': CoverageGapId, 'Kind': Kind, 'Status': Status, 'ShiftDay': ShiftDay, 'ShiftWindow': ShiftWindow, 'ShiftStartUtc': JsonConverters.toJson(ShiftStartUtc,'DateTime',context!), 'Site': Site, 'RoleNeeded': RoleNeeded, 'ExpiryLabel': ExpiryLabel, 'PosterName': PosterName, 'EligibleCount': EligibleCount, 'IneligibleCount': IneligibleCount, 'MyEligibility': JsonConverters.toJson(MyEligibility,'CoverageSelfEligibility',context!), 'Matrix': JsonConverters.toJson(Matrix,'List',context!), 'SwapState': SwapState, 'SwapFromName': SwapFromName, 'SwapTargetName': SwapTargetName, 'OfferShift': OfferShift, 'WantShift': WantShift, 'ConflictOk': ConflictOk, 'ConflictLabel': ConflictLabel, 'CanRespond': CanRespond }; getTypeName() => "CoverageSelfCard"; TypeContext? context = _ctx; } class CoverageSelfCardResponse implements IConvertible { ResponseStatus? ResponseStatus; CoverageSelfCard? Card; CoverageSelfCardResponse({this.ResponseStatus,this.Card}); CoverageSelfCardResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Card = JsonConverters.fromJson(json['Card'],'CoverageSelfCard',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Card': JsonConverters.toJson(Card,'CoverageSelfCard',context!) }; getTypeName() => "CoverageSelfCardResponse"; TypeContext? context = _ctx; } // @Route("/v1/coverage/self/swaprespond", "POST,OPTIONS") class CoverageSelfSwapRespondRequest implements IReturn, IConvertible, IPost { int? CoverageGapId; String? Action; CoverageSelfSwapRespondRequest({this.CoverageGapId,this.Action}); CoverageSelfSwapRespondRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CoverageGapId = json['CoverageGapId']; Action = json['Action']; return this; } Map toJson() => { 'CoverageGapId': CoverageGapId, 'Action': Action }; createResponse() => CoverageSelfCardResponse(); getResponseTypeName() => "CoverageSelfCardResponse"; getTypeName() => "CoverageSelfSwapRespondRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CoverageSelfEligibility': TypeInfo(TypeOf.Class, create:() => CoverageSelfEligibility()), 'CoverageSelfMatrixRow': TypeInfo(TypeOf.Class, create:() => CoverageSelfMatrixRow()), 'CoverageSelfCard': TypeInfo(TypeOf.Class, create:() => CoverageSelfCard()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CoverageSelfCardResponse': TypeInfo(TypeOf.Class, create:() => CoverageSelfCardResponse()), 'CoverageSelfSwapRespondRequest': TypeInfo(TypeOf.Class, create:() => CoverageSelfSwapRespondRequest()), });