UpdateNewWidgetCopyQuery.fromJson constructor
Parses a UpdateNewWidgetCopyQuery from TDLib JSON.
Implementation
factory UpdateNewWidgetCopyQuery.fromJson(Map<String, dynamic> json) =>
UpdateNewWidgetCopyQuery(
id: _readInt(json['id']),
senderUserId: _readInt(json['sender_user_id']),
queryType: _readObject(json['query_type'], WidgetQueryType.fromJson),
data: _readString(json['data']),
widgetId: _readInt(json['widget_id']),
walletCard: _readOptional(json['wallet_card'], TonWalletCard.fromJson),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);