AppTransaction.fromJson constructor
AppTransaction.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AppTransaction.fromJson(Map<String, dynamic> json) {
return AppTransaction(
appId: (json['appId'] as num).toDouble(),
appTransactionId: json['appTransactionId'] as String?,
appVersion: json['appVersion'] as String,
appVersionId: (json['appVersionId'] as num).toDouble(),
bundleId: json['bundleId'] as String,
deviceVerification: json['deviceVerification'] as String,
deviceVerificationNonce: json['deviceVerificationNonce'] as String,
environment: json['environment'] as String,
originalAppVersion: json['originalAppVersion'] as String,
originalPlatform: json['originalPlatform'] as String?,
originalPurchaseDate: (json['originalPurchaseDate'] as num).toDouble(),
preorderDate: (json['preorderDate'] as num?)?.toDouble(),
signedDate: (json['signedDate'] as num).toDouble(),
);
}