toJSON method

Map<String, dynamic> toJSON()

Implementation

Map<String, dynamic> toJSON() {
  return {
    'id': id,
    'senderId': senderId,
    'senderName': senderName,
    'senderAvatarUrl': senderAvatarUrl,
    'recipientId': recipientId,
    'recipientName': recipientName,
    'tier': tier.name,
    'amount': amount,
    'message': message,
    'contextType': contextType,
    'contextId': contextId,
    'createdTime': createdTime,
  };
}