Converts the object to a JSON-encodable object.
@override Map<String, Object?> toJson() => { if (links.isNotEmpty) 'links': links, if (meta.isNotEmpty) 'meta': meta, };