toMap method

Map toMap()

JSON String to Map usingjson.decode

Implementation

// ignore: always_specify_types
Map toMap() {
  try {
    if (isEmpty) return defaultMap;
    return json.decode(this);
  } on Exception catch (e, s) {
    errorLogsNS("Error in toMap\n\n *$this* ", e, s);
  }
  return defaultMap;
}