Package constructor
const
Package(
- String identifier,
- @JsonKey(name: 'packageType', unknownEnumValue: PackageType.unknown) PackageType packageType,
- @JsonKey(name: 'product') StoreProduct storeProduct,
- PresentedOfferingContext presentedOfferingContext,
Implementation
const factory Package(
/// Unique identifier for this package. Can be one a predefined package type
/// or a custom one.
String identifier,
/// Package type for the product. Will be one of [PackageType].
// ignore: invalid_annotation_target
@JsonKey(
name: 'packageType',
unknownEnumValue: PackageType.unknown,
)
PackageType packageType,
/// StoreProduct assigned to this package.
// ignore: invalid_annotation_target
@JsonKey(name: 'product') StoreProduct storeProduct,
/// Offering context this package belongs to.
PresentedOfferingContext presentedOfferingContext,
) = _Package;