toJSON method

  1. @override
Map<String, dynamic> toJSON({
  1. Object3dMeta? meta,
})
override

Implementation

@override
toJSON({Object3dMeta? meta}) {
  Map<String, dynamic> data = super.toJSON(meta: meta);

  if (fog != null) data["object"]["fog"] = fog!.toJSON();

  return data;
}