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