PremiumStatus.fromJson constructor

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

Implementation

PremiumStatus.fromJson(Map<String, dynamic> json) {
  premium = json['premium'];
  subscription = json['subscription'] != null
      ? new PremiumSubscription.fromJson(json['subscription'])
      : null;
  wallet =
  json['wallet'] != null ? new PremiumWallet.fromJson(json['wallet']) : null;

  errorText = json['error_text'];
  successText = json['success_text'];
}