PageBlockPhoto.fromJson constructor

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

Parse from a json

Implementation

factory PageBlockPhoto.fromJson(Map<String, dynamic> json) => PageBlockPhoto(
  photo: json['photo'] == null ? null : Photo.fromJson(json['photo']),
  caption: PageBlockCaption.fromJson(json['caption']),
  url: json['url'],
);