UserTypeBot.fromJson constructor

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

Parse from a json

Implementation

factory UserTypeBot.fromJson(Map<String, dynamic> json) => UserTypeBot(
  canJoinGroups: json['can_join_groups'],
  canReadAllGroupMessages: json['can_read_all_group_messages'],
  isInline: json['is_inline'],
  inlineQueryPlaceholder: json['inline_query_placeholder'],
  needLocation: json['need_location'],
);