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