Map<String, dynamic> toMap() { return <String, dynamic>{ 'mountPath': mountPath, 'name': name, 'readOnly': ?readOnly, 'subPath': ?subPath, }; }