Product constructor

Product({
  1. required String id,
  2. required String? organizationId,
  3. required String? oauthClientId,
  4. required String name,
  5. required String slug,
  6. required String? description,
  7. required UserMetadata? features,
  8. required ProductProductTypeEnum productType,
  9. required int? price,
  10. required String? currency,
  11. required String? stripePriceId,
  12. required String? stripeProductId,
  13. required String? paypalPlanId,
  14. required String? paypalProductId,
  15. required String? razorpayPlanId,
  16. required UserMetadata? metadata,
  17. required String? createdAt,
  18. required String? updatedAt,
})

Returns a new Product instance.

Implementation

Product({
  required this.id,
  required this.organizationId,
  required this.oauthClientId,
  required this.name,
  required this.slug,
  required this.description,
  required this.features,
  required this.productType,
  required this.price,
  required this.currency,
  required this.stripePriceId,
  required this.stripeProductId,
  required this.paypalPlanId,
  required this.paypalProductId,
  required this.razorpayPlanId,
  required this.metadata,
  required this.createdAt,
  required this.updatedAt,
});