operator []= method

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

Implementation

@override
operator []=(String key, value) {
  switch (key) {
    case "ref":
      this.ref = value as MSchemaRef;
      break;
    case "mschema":
      this.mschema = value as IMSchemaDefinition;
      break;
    case "recordType":
      this.recordType = value as MSchemaRef;
      break;
    case "category":
      this.category = value as String;
      break;
    case "templates":
      this.templates = value as Map<String, IFactSchemaTemplate>;
      break;
    case "icon":
      this.icon = value as String;
      break;
    case "tenses":
      this.tenses = value as List<IFactTense>;
      break;
    case "factTokens":
      this.factTokens = value as List<String>;
      break;
    case "bundle":
      this.bundle = value as String;
      break;
    case "dates":
      this.dates = value as List<IFactMetaDate>;
      break;
    case "links":
      this.links = value as List<IFactLink>;
      break;
    case "duration":
      this.duration = value as IFactDuration;
      break;
    case "isSingleton":
      this.isSingleton = value as bool;
      break;
    case "isAttribute":
      this.isAttribute = value as bool;
      break;
    default:
      wrapped[key] = value;
  }
}