fromJson static method
Implementation
static ServiceRuntimeEvent fromJson(Map<String, dynamic> json) {
return ServiceRuntimeEvent(
type: (json["type"] as String?) ?? "Normal",
reason: (json["reason"] as String?) ?? "Unknown",
message: (json["message"] as String?) ?? "",
count: ServiceRuntimeState._toInt(json["count"]) ?? 1,
firstTimestamp: ServiceRuntimeState._toDouble(json["first_timestamp"]) ?? 0,
lastTimestamp: ServiceRuntimeState._toDouble(json["last_timestamp"]) ?? 0,
);
}