MembershipTierData constructor

MembershipTierData({
  1. int? id,
  2. String? name,
  3. String? description,
  4. bool? isTest,
  5. MembershipTierData_PeriodType? periodType,
  6. int? periodValue,
  7. int? priceStripeUsdCents,
  8. int? anyNamesCountIncluded,
  9. int? anyNameMinLength,
  10. Iterable<String>? features,
  11. String? colorStr,
  12. String? stripeProductId,
  13. String? stripeManageUrl,
  14. String? iosProductId,
  15. String? iosManageUrl,
  16. String? androidProductId,
  17. String? androidManageUrl,
  18. String? offer,
})

Implementation

factory MembershipTierData({
  $core.int? id,
  $core.String? name,
  $core.String? description,
  $core.bool? isTest,
  MembershipTierData_PeriodType? periodType,
  $core.int? periodValue,
  $core.int? priceStripeUsdCents,
  $core.int? anyNamesCountIncluded,
  $core.int? anyNameMinLength,
  $core.Iterable<$core.String>? features,
  $core.String? colorStr,
  $core.String? stripeProductId,
  $core.String? stripeManageUrl,
  $core.String? iosProductId,
  $core.String? iosManageUrl,
  $core.String? androidProductId,
  $core.String? androidManageUrl,
  $core.String? offer,
}) {
  final result = create();
  if (id != null) result.id = id;
  if (name != null) result.name = name;
  if (description != null) result.description = description;
  if (isTest != null) result.isTest = isTest;
  if (periodType != null) result.periodType = periodType;
  if (periodValue != null) result.periodValue = periodValue;
  if (priceStripeUsdCents != null)
    result.priceStripeUsdCents = priceStripeUsdCents;
  if (anyNamesCountIncluded != null)
    result.anyNamesCountIncluded = anyNamesCountIncluded;
  if (anyNameMinLength != null) result.anyNameMinLength = anyNameMinLength;
  if (features != null) result.features.addAll(features);
  if (colorStr != null) result.colorStr = colorStr;
  if (stripeProductId != null) result.stripeProductId = stripeProductId;
  if (stripeManageUrl != null) result.stripeManageUrl = stripeManageUrl;
  if (iosProductId != null) result.iosProductId = iosProductId;
  if (iosManageUrl != null) result.iosManageUrl = iosManageUrl;
  if (androidProductId != null) result.androidProductId = androidProductId;
  if (androidManageUrl != null) result.androidManageUrl = androidManageUrl;
  if (offer != null) result.offer = offer;
  return result;
}