CelmProgress.fromJson constructor
CelmProgress.fromJson(
- Map<String, dynamic> json
)
Implementation
factory CelmProgress.fromJson(Map<String, dynamic> json) => CelmProgress(
runId: _requireString(json, 'CelmProgress', 'runId'),
currentStep: json['currentStep'] as String? ?? '',
budget: CelmBudgetUse.fromJson(
_requireMap(json, 'CelmProgress', 'budget'),
),
history: _list(json['history'], CelmAttempt.fromJson),
escalated: json['escalated'] as bool? ?? false,
outcome: json['outcome'] == null
? null
: CelmOutcome.fromJson(json['outcome'] as Map<String, dynamic>),
);