fromJson static method

LinkPreviewTypeDirectMessagesChat? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static LinkPreviewTypeDirectMessagesChat? fromJson(
    Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return LinkPreviewTypeDirectMessagesChat(
    photo: ChatPhoto.fromJson(json['photo'] as Map<String, dynamic>?),
  );
}