fromJson static method
Implementation
static ServiceRuntimeState fromJson(Map<String, dynamic> json) {
return ServiceRuntimeState(
serviceId: json["service_id"] as String,
state: (json["state"] as String?) ?? "unknown",
containerId: json["container_id"] as String?,
restartScheduledAt: _toDouble(json["restart_scheduled_at"]),
startedAt: _toDouble(json["started_at"]),
restartCount: _toInt(json["restart_count"]) ?? 0,
lastExitCode: _toInt(json["last_exit_code"]),
lastExitAt: _toDouble(json["last_exit_at"]),
);
}