flutter_toon 1.0.0 copy "flutter_toon: ^1.0.0" to clipboard
flutter_toon: ^1.0.0 copied to clipboard

A Flutter package for converting JSON to TOON and TOON to JSON.

example/main.dart

import 'package:flutter_toon/flutter_toon.dart';

// Minimal example showing how to convert JSON -> TOON and TOON -> JSON.
void main() {
  final json = {
    'name': 'Mickey',
    'age': 92,
    'isActive': true,
    'tags': ['mouse', 'cartoon'],
    'address': {
      'city': 'Orlando',
      'zip': '32830',
    },
    'items': [
      {'id': 1, 'label': 'One'},
      {'id': 2, 'label': 'Two'},
    ],
  };

  final toon = jsonToToon(json);
  print('TOON output:\n$toon\n');

  final jsonBack = toonToJson(toon);
  print('JSON back:\n$jsonBack');
}
0
likes
160
points
44
downloads

Documentation

API reference

Publisher

verified publisherdinethsiriwardana.me

Weekly Downloads

A Flutter package for converting JSON to TOON and TOON to JSON.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_toon