UpdateAttachmentMenuBots.fromJson constructor

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

Parse from a json

Implementation

factory UpdateAttachmentMenuBots.fromJson(Map<String, dynamic> json) =>
    UpdateAttachmentMenuBots(
      bots: List<AttachmentMenuBot>.from((json['bots'] ?? [])
          .map((item) => AttachmentMenuBot.fromJson(item))
          .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );