/* Options: Date: 2026-10-01 12:31:22 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://stubbur-app.azurewebsites.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: StigSummaryRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class StigStreakView implements IConvertible { int? currentWeeks; int? longestWeeks; int? totalScanWeeks; int? totalScans; String? currentWeekKey; String? lastScanWeekKey; DateTime? lastScanUtc; DateTime? currentStreakStartUtc; bool? scannedThisWeek; bool? atRisk; StigStreakView({this.currentWeeks,this.longestWeeks,this.totalScanWeeks,this.totalScans,this.currentWeekKey,this.lastScanWeekKey,this.lastScanUtc,this.currentStreakStartUtc,this.scannedThisWeek,this.atRisk}); StigStreakView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { currentWeeks = json['currentWeeks']; longestWeeks = json['longestWeeks']; totalScanWeeks = json['totalScanWeeks']; totalScans = json['totalScans']; currentWeekKey = json['currentWeekKey']; lastScanWeekKey = json['lastScanWeekKey']; lastScanUtc = JsonConverters.fromJson(json['lastScanUtc'],'DateTime',context!); currentStreakStartUtc = JsonConverters.fromJson(json['currentStreakStartUtc'],'DateTime',context!); scannedThisWeek = json['scannedThisWeek']; atRisk = json['atRisk']; return this; } Map toJson() => { 'currentWeeks': currentWeeks, 'longestWeeks': longestWeeks, 'totalScanWeeks': totalScanWeeks, 'totalScans': totalScans, 'currentWeekKey': currentWeekKey, 'lastScanWeekKey': lastScanWeekKey, 'lastScanUtc': JsonConverters.toJson(lastScanUtc,'DateTime',context!), 'currentStreakStartUtc': JsonConverters.toJson(currentStreakStartUtc,'DateTime',context!), 'scannedThisWeek': scannedThisWeek, 'atRisk': atRisk }; getTypeName() => "StigStreakView"; TypeContext? context = _ctx; } class StigLadderView implements IConvertible { List? rungs; int? rungsReached; int? nextRung; int? stigToNextRung; int? progressBasisPoints; StigLadderView({this.rungs,this.rungsReached,this.nextRung,this.stigToNextRung,this.progressBasisPoints}); StigLadderView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { rungs = JsonConverters.fromJson(json['rungs'],'List',context!); rungsReached = json['rungsReached']; nextRung = json['nextRung']; stigToNextRung = json['stigToNextRung']; progressBasisPoints = json['progressBasisPoints']; return this; } Map toJson() => { 'rungs': JsonConverters.toJson(rungs,'List',context!), 'rungsReached': rungsReached, 'nextRung': nextRung, 'stigToNextRung': stigToNextRung, 'progressBasisPoints': progressBasisPoints }; getTypeName() => "StigLadderView"; TypeContext? context = _ctx; } class StigSummaryResult implements IConvertible { String? fullPhoneNumber; bool? known; bool? excluded; int? balance; int? heldStig; int? available; int? lifetimeEarned; DateTime? updatedUtc; StigStreakView? streak; StigLadderView? ladder; int? statusCode; String? message; StigSummaryResult({this.fullPhoneNumber,this.known,this.excluded,this.balance,this.heldStig,this.available,this.lifetimeEarned,this.updatedUtc,this.streak,this.ladder,this.statusCode,this.message}); StigSummaryResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { fullPhoneNumber = json['fullPhoneNumber']; known = json['known']; excluded = json['excluded']; balance = json['balance']; heldStig = json['heldStig']; available = json['available']; lifetimeEarned = json['lifetimeEarned']; updatedUtc = JsonConverters.fromJson(json['updatedUtc'],'DateTime',context!); streak = JsonConverters.fromJson(json['streak'],'StigStreakView',context!); ladder = JsonConverters.fromJson(json['ladder'],'StigLadderView',context!); statusCode = json['statusCode']; message = json['message']; return this; } Map toJson() => { 'fullPhoneNumber': fullPhoneNumber, 'known': known, 'excluded': excluded, 'balance': balance, 'heldStig': heldStig, 'available': available, 'lifetimeEarned': lifetimeEarned, 'updatedUtc': JsonConverters.toJson(updatedUtc,'DateTime',context!), 'streak': JsonConverters.toJson(streak,'StigStreakView',context!), 'ladder': JsonConverters.toJson(ladder,'StigLadderView',context!), 'statusCode': statusCode, 'message': message }; getTypeName() => "StigSummaryResult"; TypeContext? context = _ctx; } // @Route("/stig/summary", "GET") class StigSummaryRequest implements IReturn, IConvertible { String? fullPhoneNumber; StigSummaryRequest({this.fullPhoneNumber}); StigSummaryRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { fullPhoneNumber = json['fullPhoneNumber']; return this; } Map toJson() => { 'fullPhoneNumber': fullPhoneNumber }; createResponse() => StigSummaryResult(); getResponseTypeName() => "StigSummaryResult"; getTypeName() => "StigSummaryRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: { 'StigStreakView': TypeInfo(TypeOf.Class, create:() => StigStreakView()), 'StigLadderView': TypeInfo(TypeOf.Class, create:() => StigLadderView()), 'StigSummaryResult': TypeInfo(TypeOf.Class, create:() => StigSummaryResult()), 'StigSummaryRequest': TypeInfo(TypeOf.Class, create:() => StigSummaryRequest()), });