toJson method

  1. @override
Map<String, dynamic> toJson()
override

Converts to JSON encodable Map

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'type': type.value,
    'date': date,
    'sender_user': senderUser.toJson(),
  };
}