fromJson static method

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

Implementation

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

  return PushMessageContentVideoNote(
    videoNote: VideoNote.fromJson(tdMapFromJson(json['video_note'])),
    isPinned: (json['is_pinned'] as bool?) ?? false,
  );
}