map<TResult extends Object?> method

TResult map<TResult extends Object?>({
  1. required TResult backdrop(
    1. UpgradedGiftAttributeIdBackdrop value
    ),
  2. required TResult model(
    1. UpgradedGiftAttributeIdModel value
    ),
  3. required TResult symbol(
    1. UpgradedGiftAttributeIdSymbol value
    ),
})

Implementation

TResult map<TResult extends Object?>({
  required TResult Function(UpgradedGiftAttributeIdBackdrop value) backdrop,
  required TResult Function(UpgradedGiftAttributeIdModel value) model,
  required TResult Function(UpgradedGiftAttributeIdSymbol value) symbol,
}) {
  switch (getConstructor()) {
    case UpgradedGiftAttributeIdBackdrop.constructor:
      return backdrop.call(this as UpgradedGiftAttributeIdBackdrop);
    case UpgradedGiftAttributeIdModel.constructor:
      return model.call(this as UpgradedGiftAttributeIdModel);
    case UpgradedGiftAttributeIdSymbol.constructor:
      return symbol.call(this as UpgradedGiftAttributeIdSymbol);
  }
  throw StateError('not handled type Generator');
}