Map<String, Object> toJson() { final Map<String, Object> r = <String, Object>{}; r['attributes'] = attribs; r['indices'] = indices; r['vertices'] = buffer; return r; }