toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'blockMessageSenderFromReplies',
    if (extra != null) '@extra': extra,
    'message_id': message_id,
    'delete_message': delete_message,
    'delete_all_messages': delete_all_messages,
    'report_spam': report_spam
  };
}