GiftModel.fromJson constructor

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

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>(),
  );
}