core.Map<core.String, core.dynamic> toJson() => { if (remotePath != null) 'remotePath': remotePath!, if (server != null) 'server': server!, };