toDataStatic static method

Map<String, String> toDataStatic(
  1. Map<String, dynamic> json
)

Implementation

static Map<String, String> toDataStatic(Map<String, dynamic> json) {
  var result = <String, String>{};
  for (MapEntry<String, dynamic> entry in json.entries) {
    result.putIfAbsent(entry.key, () => entry.value.toString());
  }

  return result;
}