static String? nullOrString(Object? value) { if (value == null) { return null; } else { return value.toString().isEmpty ? null : value as String; } }