Add the official toon_format package to your project
dart pub add toon_format
Usage Example
Quick start guide for encoding and decoding TOON format in Dart
import 'package:toon_format/toon_format.dart';
void main() {
// Your data
final data = {
'name': 'Alice',
'age': 30
};
// Convert to TOON format
final toonString = encode(data);
print(toonString);
// Output:
// name: Alice
// age: 30
// Convert back to map
final decoded = decode(toonString);
}