RedPacketBase.from constructor
RedPacketBase.from(
- Map data
Implementation
RedPacketBase.from(Map data)
: count = data['count'] ?? 0,
gesture = data['gesture'] == null
? null
: GestureType.values[data['gesture']],
got = data['got'] ?? 0,
msg = data['msg'] ?? '',
userName = data['userName'] ?? '',
avatarURL = data['userAvatarURL'] ?? '';