parseObject method Null safety

LCObject parseObject(
  1. String str
)

The inverse function of toString.

Implementation

static LCObject parseObject(String str) {
  _LCObjectData objectData = _LCObjectData.decode(jsonDecode(str));
  LCObject object = _createByName(objectData.className!);
  object._merge(objectData);
  return object;
}