factory Example.fromJson(Map<String, dynamic> json) { return Example( input: decode(json['input'], Message.fromJson), output: decode(json['output'], Message.fromJson), ); }