toJson method

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

Converts an InlineKeyboardMarkup object to JSON object

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    'inline_keyboard': inlineKeyboard.map((row) {
      return row.map((button) {
        return button.toJson();
      }).toList();
    }).toList(),
  }..removeWhere(_nullFilter);
}