Map<String, dynamic> toJson() { final _json = <String, dynamic>{}; if (file != null) { _json[r'File'] = file; } else { _json[r'File'] = null; } return _json; }