fromJson static method

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

Implementation

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

  return LinkPreviewTypeUser(
    photo: ChatPhoto.fromJson(tdMapFromJson(json['photo'])),
    isBot: (json['is_bot'] as bool?) ?? false,
  );
}