toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
  if (this.organizationId != null) {
    json[r'organizationId'] = this.organizationId;
  } else {
    json[r'organizationId'] = null;
  }
  if (this.oauthClientId != null) {
    json[r'oauthClientId'] = this.oauthClientId;
  } else {
    json[r'oauthClientId'] = null;
  }
    json[r'name'] = this.name;
    json[r'slug'] = this.slug;
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  if (this.features != null) {
    json[r'features'] = this.features;
  } else {
    json[r'features'] = null;
  }
    json[r'productType'] = this.productType;
  if (this.price != null) {
    json[r'price'] = this.price;
  } else {
    json[r'price'] = null;
  }
  if (this.currency != null) {
    json[r'currency'] = this.currency;
  } else {
    json[r'currency'] = null;
  }
  if (this.stripePriceId != null) {
    json[r'stripePriceId'] = this.stripePriceId;
  } else {
    json[r'stripePriceId'] = null;
  }
  if (this.stripeProductId != null) {
    json[r'stripeProductId'] = this.stripeProductId;
  } else {
    json[r'stripeProductId'] = null;
  }
  if (this.paypalPlanId != null) {
    json[r'paypalPlanId'] = this.paypalPlanId;
  } else {
    json[r'paypalPlanId'] = null;
  }
  if (this.paypalProductId != null) {
    json[r'paypalProductId'] = this.paypalProductId;
  } else {
    json[r'paypalProductId'] = null;
  }
  if (this.razorpayPlanId != null) {
    json[r'razorpayPlanId'] = this.razorpayPlanId;
  } else {
    json[r'razorpayPlanId'] = null;
  }
  if (this.metadata != null) {
    json[r'metadata'] = this.metadata;
  } else {
    json[r'metadata'] = null;
  }
  if (this.createdAt != null) {
    json[r'createdAt'] = this.createdAt;
  } else {
    json[r'createdAt'] = null;
  }
  if (this.updatedAt != null) {
    json[r'updatedAt'] = this.updatedAt;
  } else {
    json[r'updatedAt'] = null;
  }
  return json;
}