asListString function

List<String> asListString(
  1. Map<String, dynamic>? json,
  2. String key, {
  3. List? defaultValue,
})

Implementation

List<String> asListString(Map<String, dynamic>? json, String key,
    {List? defaultValue}) {
  return asList(json, key, defaultValue: defaultValue)
      .map((e) => toString(e))
      .toList();
}