fromJson static method

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

Implementation

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

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