fromJson static method

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

Implementation

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

  return LinkPreviewTypeVoiceNote(
    voiceNote: VoiceNote.fromJson(tdMapFromJson(json['voice_note'])),
  );
}