operator []= method Null safety

  1. @override
void operator []=(
  1. String key,
  2. dynamic value
)
override

Implementation

@override
operator []=(String key, value) {
  switch(key) {
    case "type": this.type = value as String; break;
    case "path": this.path = value as String; break;
    case "label": this.label = value as String; break;
    case "description": this.description = value as String; break;
    case "uri": this.uri = value as Uri; break;
    case "baseCode": this.baseCode = value as String; break;
    case "isRequired": this.isRequired = value as bool; break;
    case "allItems": this.allItems = value as IMSchemaProperty; break;
    default: wrapped[key] = value;
  }
}