toValueStringStatic static method

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

Returns all values as a String separated by a hyphen value1 - value2 - value3

Implementation

static String toValueStringStatic(Map<String, dynamic> json) {
  String result = '';
  for (MapEntry<String, dynamic> entry in json.entries) {
    result = result + (entry.value != null ? ' - ${entry.value}' : '');
  }

  return result;
}