DataStore constructor

DataStore(
  1. Object dataObject
)

Implementation

DataStore(Object dataObject) {
  // dataObject is a string, we need to convert it to a map
  if (dataObject is String) {
    dataObject = jsonDecode(dataObject);
  }
  var data = dataObject as Map<String, dynamic>;
  _dataMap = Map<String, dynamic>.from(data);
}