Skip to content

Compile process does not recognize FF own functions #859

@bitgandtter

Description

@bitgandtter

Has your issue been reported?

  • I have searched the existing issues and confirm it has not been reported.
  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

For project https://app.flutterflow.io/project/snout-zone-zrnm87 function called deserializePetFromJSON that internally uses

serializers.deserializeWith(PetsRecord.serializer, data)
where serializers its exported from ../../backend/backend.dart but for some reason even when the code editor recognizes it as valid the compiler does not.

It's important to use to be able to convert a JSON response into a DataType object

Expected Behavior

Recognize and compile successfully

Steps to Reproduce

  1. Create a project
  2. setup firebase + configure a database
  3. create a custom function and try to use serializers.deserializeWith(.serializer, data)

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

IT4ghcnfsM5ItbwG1s+Nde9avCkXHDp7R600sNobbxAjIoDoPJkUaePeTBNoOcClYX9tKEWJ/WAE0PPGjob1CvZcFE+cGYBN1KtuVT3MTky/aoSuBqmSRER5BcFmfm6A08CnpBZ+XPVfR3hl612qftmWTh/AQJv7Zwh9f6PHaOI=

Context

Dealing with API JSON and its paths is complicated. If we can map JSON response to existing datatypes will speed up the design process on a 100% bases + ensure that the data is strong type validated

Visual documentation

image

Additional Info

No response

Environment

- FlutterFlow version: 3.1
- Platform: Web ? android
- Browser name and version: Chrome Version 113.0.5672.63 (Official Build) (64-bit)
- Operating system and version affected: Linux

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions