Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/src/dto/eligibility.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enum QEligibilityStatus {
eligible,
}

@JsonSerializable()
@JsonSerializable(createToJson: false)
class QEligibility {
@JsonKey(name: "status", defaultValue: QEligibilityStatus.unknown)
final QEligibilityStatus status;
Expand Down
5 changes: 0 additions & 5 deletions lib/src/dto/eligibility.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions lib/src/dto/launch_mode.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'package:json_annotation/json_annotation.dart';

enum QLaunchMode {
analytics,
subscriptionManagement,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/dto/screen_presentation_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'screen_presentation_style.dart';

part 'screen_presentation_config.g.dart';

@JsonSerializable()
@JsonSerializable(createFactory: false)
class QScreenPresentationConfig {
/// Describes how screens will be displayed.
/// For mode details see the enum description.
Expand Down
34 changes: 0 additions & 34 deletions lib/src/dto/screen_presentation_config.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 17 additions & 20 deletions lib/src/dto/sku_details/sku_details.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// Copyright 2019 The Chromium Authors. All rights reserved.

import 'dart:ui' show hashValues;

import 'package:json_annotation/json_annotation.dart';

part 'sku_details.g.dart';
Expand Down Expand Up @@ -112,29 +110,28 @@ class SkuDetailsWrapper {
return false;
}

final SkuDetailsWrapper typedOther = other;
return typedOther is SkuDetailsWrapper &&
typedOther.description == description &&
typedOther.freeTrialPeriod == freeTrialPeriod &&
typedOther.introductoryPrice == introductoryPrice &&
typedOther.introductoryPriceAmountMicros ==
return other is SkuDetailsWrapper &&
other.description == description &&
other.freeTrialPeriod == freeTrialPeriod &&
other.introductoryPrice == introductoryPrice &&
other.introductoryPriceAmountMicros ==
introductoryPriceAmountMicros &&
typedOther.introductoryPriceCycles == introductoryPriceCycles &&
typedOther.introductoryPricePeriod == introductoryPricePeriod &&
typedOther.price == price &&
typedOther.priceAmountMicros == priceAmountMicros &&
typedOther.sku == sku &&
typedOther.subscriptionPeriod == subscriptionPeriod &&
typedOther.title == title &&
typedOther.type == type &&
typedOther.originalPrice == originalPrice &&
typedOther.originalPriceAmountMicros == originalPriceAmountMicros &&
typedOther.originalJson == originalJson;
other.introductoryPriceCycles == introductoryPriceCycles &&
other.introductoryPricePeriod == introductoryPricePeriod &&
other.price == price &&
other.priceAmountMicros == priceAmountMicros &&
other.sku == sku &&
other.subscriptionPeriod == subscriptionPeriod &&
other.title == title &&
other.type == type &&
other.originalPrice == originalPrice &&
other.originalPriceAmountMicros == originalPriceAmountMicros &&
other.originalJson == originalJson;
}

@override
int get hashCode {
return hashValues(
return Object.hash(
description.hashCode,
freeTrialPeriod.hashCode,
introductoryPrice.hashCode,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/dto/user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:json_annotation/json_annotation.dart';

part 'user.g.dart';

@JsonSerializable()
@JsonSerializable(createToJson: false)
class QUser {
@JsonKey(name: "qonversionId")
final String qonversionId;
Expand Down
5 changes: 0 additions & 5 deletions lib/src/dto/user.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.