Skip to content

[QA] 建议采用自动维护的序列化类 #32

@isHarryh

Description

@isHarryh

问题

当前 lib/models 中编码有若干数据类,并且采用手动序列化/反序列化方法(例如手动编写的 fromJson)。此手动编码序列化代码的方法可能导致弱维护性。

建议

使用 json_serializable 库完成自动化的可序列化数据类代码生成,以提高可维护性,参见 https://pub.dev/packages/json_serializable

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