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(),
};
}