factory PECard.fromJson(Map<String, dynamic> json) { return PECard( token: json['token'], cardData: CardData.fromJson(json['card_data']), ); }