operator [] method

dynamic operator [](
  1. String key
)

to be able to get the data like from a map

Implementation

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