initModelState method Null safety

void initModelState()

Implementation

void initModelState() {
  assert(_model._debugLog == null);
  _initialState = _model.toJson();
}