toJson method
Implementation
Map<String, dynamic> toJson() {
return {
if (environment != null) 'environment': environment!.map((e) => e.toJson()).toList(),
if (image != null) 'image': image,
if (command != null) 'command': command,
if (storage != null) 'storage': storage!.toJson(),
if (onDemand != null) 'on_demand': onDemand,
if (writableRootFs != null) 'writable_root_fs': writableRootFs,
if (private != null) 'private': private,
};
}