operator [] method

dynamic operator [](
  1. String key
)

to be able to get the data like from a map

Implementation

dynamic operator [](String key) {
  if (data == null) return "";
  String result = "";
  try {
    return data[key];
  } catch (e) {}
  return result;
}