fromJson static method

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

Implementation

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

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