fromJson static method

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

Implementation

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

  return FileDownloadedPrefixSize(size: (json['size'] as int?) ?? 0);
}