RedPacketInfo.from constructor
RedPacketInfo.from(
- Map data
Implementation
RedPacketInfo.from(Map data)
: info = RedPacketBase.from(data['info']),
recivers = List.from(data['recivers'] is String
? json.decode(data['recivers'])
: data['recivers'] ?? []),
who = List.from(data['who']).map((e) => RedPacketGot.from(e)).toList();