fromJson static method

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

Implementation

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

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