Map<String, dynamic> get toMap { Map<String, dynamic> value = {}; if (scratch != null) { value.addAll({"scratch": scratch!}); } return value; }