DiscountOfferIOS.fromJson constructor

DiscountOfferIOS.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DiscountOfferIOS.fromJson(Map<String, dynamic> json) {
  return DiscountOfferIOS(
    identifier: json['identifier'] as String,
    keyIdentifier: json['keyIdentifier'] as String,
    nonce: json['nonce'] as String,
    signature: json['signature'] as String,
    timestamp: (json['timestamp'] as num).toDouble(),
  );
}