ChatEventPhotoChanged.fromJson constructor

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

Parse from a json

Implementation

factory ChatEventPhotoChanged.fromJson(Map<String, dynamic> json) =>
    ChatEventPhotoChanged(
      oldPhoto: json['old_photo'] == null
          ? null
          : ChatPhoto.fromJson(json['old_photo']),
      newPhoto: json['new_photo'] == null
          ? null
          : ChatPhoto.fromJson(json['new_photo']),
    );