operator []= method

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

Implementation

@override
operator []=(String key, value) {
  switch(key) {
    case "givenName": this.givenName = value as String; break;
    case "familyName": this.familyName = value as String; break;
    case "email": this.email = value as String; break;
    case "phone": this.phone = value as String; break;
    case "timeZone": this.timeZone = value as Location; break;
    case "photoUrl": this.photoUrl = value as Uri; break;
    case "address": this.address = value as IPhysicalLocation; break;
    default: wrapped[key] = value;
  }
}