operator [] method

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

Implementation

@override
operator [](key) {
  switch(key?.toString()) {
    case "givenName": return this.givenName;
    case "familyName": return this.familyName;
    case "email": return this.email;
    case "phone": return this.phone;
    case "timeZone": return this.timeZone;
    case "photoUrl": return this.photoUrl;
    case "address": return this.address;
    default: return wrapped[key];
  }
}