/* Options: Date: 2026-08-01 07:37:29 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: CoverageSelfBoardRequest.* //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 CoverageSelfBoardShift implements IConvertible { int? CoverageGapId; String? Day; String? Window; String? Site; String? Role; String? Poster; String? Expiry; String? Why; bool? NeedsApproval; bool? Pending; CoverageSelfBoardShift({this.CoverageGapId,this.Day,this.Window,this.Site,this.Role,this.Poster,this.Expiry,this.Why,this.NeedsApproval,this.Pending}); CoverageSelfBoardShift.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CoverageGapId = json['CoverageGapId']; Day = json['Day']; Window = json['Window']; Site = json['Site']; Role = json['Role']; Poster = json['Poster']; Expiry = json['Expiry']; Why = json['Why']; NeedsApproval = json['NeedsApproval']; Pending = json['Pending']; return this; } Map toJson() => { 'CoverageGapId': CoverageGapId, 'Day': Day, 'Window': Window, 'Site': Site, 'Role': Role, 'Poster': Poster, 'Expiry': Expiry, 'Why': Why, 'NeedsApproval': NeedsApproval, 'Pending': Pending }; getTypeName() => "CoverageSelfBoardShift"; TypeContext? context = _ctx; } class CoverageSelfBoardResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Eligible = []; List? Ineligible = []; CoverageSelfCard? MyPosted; CoverageSelfBoardResponse({this.ResponseStatus,this.Eligible,this.Ineligible,this.MyPosted}); CoverageSelfBoardResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Eligible = JsonConverters.fromJson(json['Eligible'],'List',context!); Ineligible = JsonConverters.fromJson(json['Ineligible'],'List',context!); MyPosted = JsonConverters.fromJson(json['MyPosted'],'CoverageSelfCard',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Eligible': JsonConverters.toJson(Eligible,'List',context!), 'Ineligible': JsonConverters.toJson(Ineligible,'List',context!), 'MyPosted': JsonConverters.toJson(MyPosted,'CoverageSelfCard',context!) }; getTypeName() => "CoverageSelfBoardResponse"; TypeContext? context = _ctx; } // @Route("/v1/coverage/self/board", "GET,OPTIONS") class CoverageSelfBoardRequest implements IReturn, IConvertible, IGet { CoverageSelfBoardRequest(); CoverageSelfBoardRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => CoverageSelfBoardResponse(); getResponseTypeName() => "CoverageSelfBoardResponse"; getTypeName() => "CoverageSelfBoardRequest"; 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:() => []), 'CoverageSelfBoardShift': TypeInfo(TypeOf.Class, create:() => CoverageSelfBoardShift()), 'CoverageSelfBoardResponse': TypeInfo(TypeOf.Class, create:() => CoverageSelfBoardResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CoverageSelfBoardRequest': TypeInfo(TypeOf.Class, create:() => CoverageSelfBoardRequest()), });