GiftModel.fromJson constructor
Implementation
factory GiftModel.fromJson(Map<String, dynamic> json) {
return GiftModel(
giftId: json['giftId'],
giftName: json['giftName'],
imageUrl: json['imageUrl'],
animationUrl: json['animationUrl'],
price: json['price'],
extInfo: json['extInfo'] != null
? Map<String, String>.from(json['extInfo'])
: Map<String, String>(),
);
}