PushMessageContentPhoto.fromJson constructor

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

Parse from a json

Implementation

factory PushMessageContentPhoto.fromJson(Map<String, dynamic> json) => PushMessageContentPhoto(
  photo: json['photo'] == null ? null : Photo.fromJson(json['photo']),
  caption: json['caption'],
  isSecret: json['is_secret'],
  isPinned: json['is_pinned'],
);