Skip to content

Generate an object to access json keys #1400

@ChreSyr

Description

@ChreSyr

Hey !

It would be very nice to have a way to link the properties to their json keys. It would reduce the margin of error. For exemple, in my case, it would be for Firebase filters.

from : Filter('datetime_start', isGreaterThan: ...)
to : Filter(MyModel.jsonKeys.dateTimeStart, isGreaterThan: ...)

I know there already is the parameter 'create_field_map' which allows for Filter(MyModel.fieldMap['dateTimeStart'], isGreaterThan: ...) but it's safer to use properties instead of strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions