PageBlockChatLink.fromJson constructor

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

Parse from a json

Implementation

factory PageBlockChatLink.fromJson(Map<String, dynamic> json) =>
    PageBlockChatLink(
      title: json['title'],
      photo: json['photo'] == null
          ? null
          : ChatPhotoInfo.fromJson(json['photo']),
      username: json['username'],
    );