fromJson static method

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

Implementation

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

  return ChatActionUploadingVoiceNote(
    progress: (json['progress'] as int?) ?? 0,
  );
}