getStringObject function

String getStringObject(
  1. Data data
)

Extracts String from Data object

Implementation

String getStringObject(Data data) {
  Object obj = data.obj;
  if (obj is String) {
    return obj;
  }
  return obj.toString();
}