superjson 1.0.3 copy "superjson: ^1.0.3" to clipboard
superjson: ^1.0.3 copied to clipboard

A Dart library providing convenient utilities for safely extracting typed data from JSON structures.

1.0.3 #

  • All non-nullable getXXX() methods now return a default value (see the list) instead of requiring the orElse argument.
    • getString() -> ''
    • getInt() -> 0
    • getDouble() -> 0.0
    • getBool() -> false
    • getDateTime() -> DateTime.fromMillisecondsSinceEpoch(0)
    • getTimestamp() -> DateTime.fromMillisecondsSinceEpoch(0)
    • getDuration() -> Duration()
    • getList
    • getJson() -> {}
    • getMap<T, V>() -> {}

1.0.2 #

  • Updated the intl dependency to the latest version (0.20.2).

1.0.1 #

  • Added timestamp parsing, compatible to Google's protobuf Timestamp format ({seconds: x, nanos: y}).

1.0.0 #

  • Initial public version (already matured in production applications).
1
likes
160
points
261
downloads

Publisher

verified publisherenfinity.dev

Weekly Downloads

A Dart library providing convenient utilities for safely extracting typed data from JSON structures.

Repository (GitHub)
View/report issues

Topics

#json

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

intl

More

Packages that depend on superjson