fromDict static method

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

(en)Restore this object from the dictionary.

(ja)辞書からオブジェクトを復元します。

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

Implementation

static Sp3dLight fromDict(Map<String, dynamic> src) {
  return Sp3dLight(Sp3dV3D.fromDict(src['direction']),
      minBrightness: src['min_brightness'],
      applyStroke: src['apply_stroke'],
      syncCam: src['sync_cam']);
}