toJsonMap method

JsonMap toJsonMap()

Takes a Map and returns a JsonMap

Implementation

JsonMap toJsonMap() {
  final self = this;
  return self.map((key, value) => MapEntry(key.toString(), value is Map ? value.toJsonMap() : value));
}