toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'giftId': giftId,
'giftName': giftName,
'imageUrl': imageUrl,
'animationUrl': animationUrl,
'price': price,
'extInfo': extInfo != null ? Map<String, String>.from(extInfo!) : null,
};
}