RedeemCoin.fromJson constructor

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

Implementation

factory RedeemCoin.fromJson(Map<String, dynamic> json) => RedeemCoin(
      minCoin: json["min_coin"] != null
          ? double.parse(json["min_coin"].toString())
          : 0.0,
      redeemCode: json["redeem_code"] ?? false,
    );