Skip to content

Instantly share code, notes, and snippets.

@DanTup
DanTup / dart.md
Created Mar 3, 2017 — forked from paulmillr/dart.md
Leaked internal google dart email
View dart.md

---------- Forwarded message ----------

From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
@DanTup
DanTup / simple_serialization_tests.dart
Created Aug 7, 2014 — forked from sethladd/simple_serialization_tests.dart
+ support for child objects (sorry if it's bad; written in Notepad and don't really know Dart!)
View simple_serialization_tests.dart
import 'dart:convert';
import 'package:smoke/smoke.dart' as smoke;
@MirrorsUsed(targets: const [SimpleWithMirrors, Simple], override: '*')
import 'dart:mirrors';
abstract class Serializable {
static fromJson(Type t, Map json) {
var typeMirror = reflectType(t);
T obj = typeMirror.newInstance(new Symbol(""), const[]).reflectee;
You can’t perform that action at this time.