toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final containerPath = this.containerPath;
  final readOnly = this.readOnly;
  final sourceVolume = this.sourceVolume;
  return {
    if (containerPath != null) 'containerPath': containerPath,
    if (readOnly != null) 'readOnly': readOnly,
    if (sourceVolume != null) 'sourceVolume': sourceVolume,
  };
}