operator [] method

Object operator [](
  1. String key
)
inherited

toMap() から、operator == の内容を自動更新できるようにするために定義している.

Implementation

Object operator [](String key) {
    if(toMap().containsKey(key)) return toMap()[key] as Object;
    // for (var item in toMap().keys) {
    //     if(key == item) return toJson()[key] as Object;
    // }
    throw AggregationPatternErrorA(key, this);
}