toJson method
Implementation
Map<String, dynamic> toJson() {
final containerName = this.containerName;
final exitCode = this.exitCode;
final imageDigest = this.imageDigest;
final networkBindings = this.networkBindings;
final reason = this.reason;
final runtimeId = this.runtimeId;
final status = this.status;
return {
if (containerName != null) 'containerName': containerName,
if (exitCode != null) 'exitCode': exitCode,
if (imageDigest != null) 'imageDigest': imageDigest,
if (networkBindings != null) 'networkBindings': networkBindings,
if (reason != null) 'reason': reason,
if (runtimeId != null) 'runtimeId': runtimeId,
if (status != null) 'status': status,
};
}