Converts an Object to a string. Returns 'n/a' if the value is null.
String formatNullable(Object? value) { return value?.toString() ?? 'n/a'; }