toJson method
Implementation
Map<String, dynamic> toJson() {
final containerName = this.containerName;
final properties = this.properties;
final type = this.type;
return {
'containerName': containerName,
if (properties != null) 'properties': properties,
if (type != null) 'type': type.toValue(),
};
}