MenuButtonWebApp.fromJson constructor

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

Creates a MenuButtonWebApp object from JSON object

Implementation

factory MenuButtonWebApp.fromJson(Map<String, dynamic> json) {
  return MenuButtonWebApp(
    text: json['text'] as String,
    webApp: WebAppInfo.fromJson(json['web_app'] as Map<String, dynamic>),
  );
}