operator [] method

dynamic operator [](
  1. String key
)
override

Implementation

operator [](key) {
  if (key == "id") return id;
  if (key == "record") return record;
  return args[key.toString()];
}