ReplyMarkupShowKeyboard.fromJson constructor

ReplyMarkupShowKeyboard.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory ReplyMarkupShowKeyboard.fromJson(Map<String, dynamic> json) => ReplyMarkupShowKeyboard(
  rows: List<List<KeyboardButton>>.from((json['rows'] ?? []).map((item) => List<KeyboardButton>.from((item ?? []).map((innerItem) => KeyboardButton.fromJson(innerItem)).toList())).toList()),
  resizeKeyboard: json['resize_keyboard'],
  oneTime: json['one_time'],
  isPersonal: json['is_personal'],
  inputFieldPlaceholder: json['input_field_placeholder'],
);