getData function

dynamic getData(
  1. dynamic data
)

Implementation

getData(data) {
  if (data == null) {
    return null;
  }

  if (data is NativeArray) {
    return data.data;
  } else {
    return data;
  }
}