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