toMap method

Map<String, Object?> toMap()

Implementation

Map<String, Object?> toMap() => <String, Object?>{
  "color": color.toARGB32(),
  "metallic": metallic,
  "roughness": roughness,
  "opacity": opacity,
  "emissive": emissive?.toARGB32(),
  "texture": texture?.toMap(),
  "unlit": unlit,
  "doubleSided": doubleSided,
  "occluder": occluder,
  "renderOnTop": renderOnTop,
};