hiranthaR / Json-to-Dart-Model

Json to Dart Model extension can convert JSON objects into Dart data classes. It supports pure Dart class conversion, Flutter-recommended JSON serialization using annotations, Freezed support, Effective Dart:Style, and many more features. Currently, it has more than 135,000 installs.
https://marketplace.visualstudio.com/items?itemName=hirantha.json-to-dart
MIT License
93 stars 18 forks source link

Added responsive formatting and date support. #18

Closed iamarnas closed 3 years ago

iamarnas commented 3 years ago

Improved stability.

List<List<Standings>> standings;

//.....
standings: (json['standings'] as List)
    ?.map((e) => (e as List)
        ?.map((e) => e == null
            ? null
            : Standings.fromJson(json['standings'] as Map<String, dynamic>))
        ?.toList())
    ?.toList(),
//.....
hiranthaR commented 3 years ago

@iamarnas I am really sorry I missed this :disappointed:

iamarnas commented 3 years ago

@hiranthaR Hi, it's never too late ;) And welcome to the most stable and accurate version. Only left to fix class names to the same named class with different properties to make this extension would work without problems :)