InlineKeyboardButtonTypeSwitchInline.fromJson constructor

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

Parse from a json

Implementation

factory InlineKeyboardButtonTypeSwitchInline.fromJson(
        Map<String, dynamic> json) =>
    InlineKeyboardButtonTypeSwitchInline(
      query: json['query'],
      targetChat: TargetChat.fromJson(json['target_chat']),
    );