update object name to MIHLoyaltyCard
This commit is contained in:
parent
2b5655b409
commit
f5b1a4328d
1 changed files with 4 additions and 4 deletions
|
|
@ -1,17 +1,17 @@
|
|||
class MIHNotification {
|
||||
class MIHLoyaltyCard {
|
||||
final int idloyalty_cards;
|
||||
final String app_id;
|
||||
final String shop_name;
|
||||
final String card_number;
|
||||
|
||||
const MIHNotification({
|
||||
const MIHLoyaltyCard({
|
||||
required this.idloyalty_cards,
|
||||
required this.app_id,
|
||||
required this.shop_name,
|
||||
required this.card_number,
|
||||
});
|
||||
|
||||
factory MIHNotification.fromJson(Map<String, dynamic> json) {
|
||||
factory MIHLoyaltyCard.fromJson(Map<String, dynamic> json) {
|
||||
return switch (json) {
|
||||
{
|
||||
"idloyalty_cards": int idloyalty_cards,
|
||||
|
|
@ -19,7 +19,7 @@ class MIHNotification {
|
|||
"shop_name": String shop_name,
|
||||
"notification_read": String card_number,
|
||||
} =>
|
||||
MIHNotification(
|
||||
MIHLoyaltyCard(
|
||||
idloyalty_cards: idloyalty_cards,
|
||||
app_id: app_id,
|
||||
shop_name: shop_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue