Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Some containers weren't loading
Browse files Browse the repository at this point in the history
  • Loading branch information
zbejas committed Jul 24, 2022
1 parent b6a8d08 commit 96ca478
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/models/docker/detailed_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -159,20 +159,20 @@ class Config {
attachStdout: json["AttachStdout"],
cmd: List<String>.from(json["Cmd"]?.map((x) => x) ?? []),
domainname: json["Domainname"],
env: List<String>.from(json["Env"].map((x) => x)),
env: List<String>.from(json["Env"]?.map((x) => x) ?? []),
healthcheck: json["Healthcheck"] != null
? Healthcheck.fromJson(json["Healthcheck"])
: null,
hostname: json["Hostname"],
image: json["Image"],
labels: Labels.fromJson(json["Labels"]),
labels: Labels.fromJson(json["Labels"] ?? {}),
macAddress: json["MacAddress"],
networkDisabled: json["NetworkDisabled"],
openStdin: json["OpenStdin"],
stdinOnce: json["StdinOnce"],
tty: json["Tty"],
user: json["User"],
volumes: Volumes.fromJson(json["Volumes"]),
volumes: Volumes.fromJson(json["Volumes"] ?? {}),
workingDir: json["WorkingDir"],
stopSignal: json["StopSignal"],
stopTimeout: json["StopTimeout"],
Expand Down Expand Up @@ -385,7 +385,7 @@ class HostConfig {
oomScoreAdj: json["OomScoreAdj"],
networkMode: json["NetworkMode"],
pidMode: json["PidMode"],
portBindings: PortBindings.fromJson(json["PortBindings"]),
portBindings: PortBindings.fromJson(json["PortBindings"] ?? {}),
privileged: json["Privileged"],
readonlyRootfs: json["ReadonlyRootfs"],
publishAllPorts: json["PublishAllPorts"],
Expand Down Expand Up @@ -798,7 +798,7 @@ class Health {
factory Health.fromJson(Map<String, dynamic> json) => Health(
status: json["Status"],
failingStreak: json["FailingStreak"],
log: List<Log>.from(json["Log"].map((x) => Log.fromJson(x))),
log: List<Log>.from(json["Log"].map((x) => Log.fromJson(x)) ?? []),
);

Map<String, dynamic> toJson() => {
Expand Down

0 comments on commit 96ca478

Please sign in to comment.