toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final dockerVolumeConfiguration = this.dockerVolumeConfiguration;
  final efsVolumeConfiguration = this.efsVolumeConfiguration;
  final fsxWindowsFileServerVolumeConfiguration =
      this.fsxWindowsFileServerVolumeConfiguration;
  final host = this.host;
  final name = this.name;
  return {
    if (dockerVolumeConfiguration != null)
      'dockerVolumeConfiguration': dockerVolumeConfiguration,
    if (efsVolumeConfiguration != null)
      'efsVolumeConfiguration': efsVolumeConfiguration,
    if (fsxWindowsFileServerVolumeConfiguration != null)
      'fsxWindowsFileServerVolumeConfiguration':
          fsxWindowsFileServerVolumeConfiguration,
    if (host != null) 'host': host,
    if (name != null) 'name': name,
  };
}