JSON to Dart POJO Generator
Generate a starter model from JSON or XML locally.
Generate a starter model from JSON or XML locally.
Generates null-safe Dart classes with final fields, a const constructor with named parameters, a fromJson factory and toJson(); nested objects and lists of objects are converted recursively and fields missing from some samples become nullable. The output passes dart analyze with no issues. {"id":1,"name":"Ada"} gives final int id;, final String name; and id: json['id'] as int.