Returns data as an encodable object compatible with json.encode().
json.encode()
Object? toEncodable() => list;