ChatEventBackgroundChanged.fromJson constructor

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

Parses a ChatEventBackgroundChanged from TDLib JSON.

Implementation

factory ChatEventBackgroundChanged.fromJson(Map<String, dynamic> json) =>
    ChatEventBackgroundChanged(
      oldBackground: _readOptional(
        json['old_background'],
        ChatBackground.fromJson,
      ),
      newBackground: _readOptional(
        json['new_background'],
        ChatBackground.fromJson,
      ),
    );