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