fromDict static method

Sp3dFace fromDict(
  1. Map<String, dynamic> src
)

Restore this object from the dictionary.

  • src : A dictionary made with toDict of this class.

Implementation

static Sp3dFace fromDict(Map<String, dynamic> src) {
  List<int> mVi = [];
  for (dynamic i in src['vertex_index_list']) {
    mVi.add(i as int);
  }
  return Sp3dFace(mVi, src['material_index']);
}