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