toJson method

Map<String, dynamic> toJson()

Implementation

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