operator [] method Null safety

  1. @override
dynamic operator [](
  1. dynamic key
)
override

Implementation

@override
operator [](key) {
  switch(key?.toString()) {
    case "type": return this.type;
    case "path": return this.path;
    case "label": return this.label;
    case "description": return this.description;
    case "uri": return this.uri;
    case "baseCode": return this.baseCode;
    case "isRequired": return this.isRequired;
    default: return wrapped[key];
  }
}