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