tools icon indicating copy to clipboard operation
tools copied to clipboard

Added the `toJson` method in `Pubspec`

Open Dhruv-Maradiya opened this issue 11 months ago • 0 comments

Description

Fixes #1801 by adding toJson method in Pubspec class.

Changes

  • Added the toJson serializable to serialize object into map.
  • Added tests to validate functionality round-trip the shape of the source.
  • Updated CHANGELOG.md to document the changes.

Checklist

  • [x] I’ve reviewed the contributor guide and followed the relevant guidelines.
  • [x] Added tests to ensure the new feature works as intended.

Dhruv-Maradiya avatar Jan 30 '25 18:01 Dhruv-Maradiya