toJson method Null safety

Map<String, dynamic> toJson()

Implementation

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