Skip to content

How to exclude field from toJson serialization? #1100

Closed
@AlexanderBykin

Description

@AlexanderBykin

Hi

Currently JsonKey annotation have ignore parameter, but it's generalized for both fromJson and toJson.
The idea is to have a control over which fields can be serialized via toJson method and then sent over internet.

Could there be implemented additional parameter bool? excludeToJson ?

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