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