PushMessageContentVoiceNote.fromJson constructor

PushMessageContentVoiceNote.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory PushMessageContentVoiceNote.fromJson(Map<String, dynamic> json) => PushMessageContentVoiceNote(
  voiceNote: json['voice_note'] == null ? null : VoiceNote.fromJson(json['voice_note']),
  isPinned: json['is_pinned'],
);