LDtk parser for Dart programming language
How to update:
- Copy the contents of LDtk json schema and paste to quicktype
- Quicktype settings:
- Source type = JSON Schema,
- Language = Dart,
- Check 'Null Safety'
- Check 'Put encoder & decoder in Class'
- In the generated dart code, find all
!,
and replace with,
- Find
json["cachedPixelData"]!
and replace withjson["cachedPixelData"] ?? <String, dynamic>{}