removeAllRecipeValue static method

dynamic removeAllRecipeValue(
  1. dynamic value
)

Implementation

static dynamic removeAllRecipeValue(dynamic value) {
  if (value == null) return null;
  if (value is Data) {
    return Data.removeAllRecipeValue(value._value);
  }
  if (value is List) {
    return value.map((e) => Data.removeAllRecipeValue(e));
  }
  if (value is Map) {
    return value.map((k, v) => MapEntry(k, Data.removeAllRecipeValue(v)));
  }
  return value;
}