GameShopModel.fromJson constructor

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

Implementation

GameShopModel.fromJson(Map<String, dynamic> json) {
  balance = json['balance'];
  earnedTicket = json['earned_ticket'];
  if (json['list_ticket_shop'] != null) {
    listTicketShop = <ListTicketShop>[];
    json['list_ticket_shop'].forEach((v) {
      listTicketShop?.add(new ListTicketShop.fromJson(v));
    });
  }
}