From 5be0dc02559b71031b98de38cbfa838ecab6b401 Mon Sep 17 00:00:00 2001 From: Kamo Spertsyan Date: Mon, 25 Nov 2024 13:54:50 +0300 Subject: [PATCH] Fixed warnings --- lib/src/dto/product.dart | 10 +++++----- lib/src/dto/sku_details/sku_details.g.dart | 3 +++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/src/dto/product.dart b/lib/src/dto/product.dart index 0c0af94..d05caf4 100644 --- a/lib/src/dto/product.dart +++ b/lib/src/dto/product.dart @@ -83,23 +83,23 @@ class QProduct { final String? prettyPrice; /// Localized price of the product - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) double? price; /// Store Product currency code, such as USD - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) String? currencyCode; /// Store product title - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) String? storeTitle; /// Store product description - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) String? storeDescription; /// Formatted introductory price of the subscription, including its currency sign, such as €2.99 - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) String? prettyIntroductoryPrice; QProduct( diff --git a/lib/src/dto/sku_details/sku_details.g.dart b/lib/src/dto/sku_details/sku_details.g.dart index b4d728f..cd67027 100644 --- a/lib/src/dto/sku_details/sku_details.g.dart +++ b/lib/src/dto/sku_details/sku_details.g.dart @@ -6,7 +6,9 @@ part of 'sku_details.dart'; // JsonSerializableGenerator // ************************************************************************** +// ignore: deprecated_member_use_from_same_package SkuDetailsWrapper _$SkuDetailsWrapperFromJson(Map json) => + // ignore: deprecated_member_use_from_same_package SkuDetailsWrapper( description: json['description'] as String, freeTrialPeriod: json['freeTrialPeriod'] as String, @@ -28,6 +30,7 @@ SkuDetailsWrapper _$SkuDetailsWrapperFromJson(Map json) => originalJson: json['originalJson'] as String, ); +// ignore: deprecated_member_use_from_same_package Map _$SkuDetailsWrapperToJson(SkuDetailsWrapper instance) => { 'description': instance.description,