PackageTrack

pub.dev

api_parser

1.1.0FaruKunte/api_parser

A lightweight, pure-Dart toolkit for parsing JSON API responses with strict, descriptive error handling. No Flutter, no runtime dependencies.

Release timeline

2 releases since 2026

Releases

  1. 1.1.026 Aug 2026
    Release notes
    • ApiResponseParser.parseObject, parseList, parseObjectWithExtra, and parseListWithExtra now accept a raw JSON string as rawBody (e.g. response.body straight from an HTTP client), decoding it automatically — in addition to an already-decoded Map/List. An unparseable string throws UnexpectedResponseException.
    • JsonReader gained getEnumOrNull and getListOrNull, completing OrNull coverage for every field type. Every ...OrNull getter returns null both when a key is missing entirely and when it's present with an explicit null value, so fields the API only sometimes includes (e.g. passwordChangeRequired) read the same way either way.
    Open source →
  2. 1.0.05 Aug 2026
    Release notes
    • Initial version.
    Open source →