Open Issues Need Help
View All on GitHubA CLI tool to generate Dart model classes from JSON. Supports `json_serializable`, `copyWith`, and optional snake_case → camelCase conversion.
A CLI tool to generate Dart model classes from JSON. Supports `json_serializable`, `copyWith`, and optional snake_case → camelCase conversion.
A CLI tool to generate Dart model classes from JSON. Supports `json_serializable`, `copyWith`, and optional snake_case → camelCase conversion.
AI Summary: The issue describes a bug where Dart class names generated from JSON keys can start with numbers, resulting in invalid Dart code. The proposed solution is to sanitize these generated class names by either removing the leading digit or prepending a valid character like an underscore, ensuring all class names are valid Dart identifiers.
A CLI tool to generate Dart model classes from JSON. Supports `json_serializable`, `copyWith`, and optional snake_case → camelCase conversion.
AI Summary: The issue proposes enhancing the generated `copyWith` method to allow explicitly setting fields to `null`. Currently, passing `null` to a `copyWith` parameter typically means retaining the field's existing value. The solution involves updating the `copyWith` implementation, potentially using optional parameters or a sentinel value, to distinguish between 'not provided' and 'explicitly null', and documenting this behavior.
A CLI tool to generate Dart model classes from JSON. Supports `json_serializable`, `copyWith`, and optional snake_case → camelCase conversion.
AI Summary: This GitHub issue addresses the problem of invalid Dart code generation when JSON keys contain characters not allowed in Dart variable or class names. The proposed solution is to implement logic to sanitize these names by replacing or ignoring invalid characters (e.g., converting "user-name" to "userName"), ensuring the generated Dart code is valid and compilable.
A CLI tool to generate Dart model classes from JSON. Supports `json_serializable`, `copyWith`, and optional snake_case → camelCase conversion.