toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (contents != null) 'contents': contents!,
      if (diskPath != null) 'diskPath': diskPath!,
      if (hashedSize != null) 'hashedSize': hashedSize!,
      if (partiallyHashed != null) 'partiallyHashed': partiallyHashed!,
      if (path != null) 'path': path!,
      if (sha256 != null) 'sha256': sha256!,
      if (size != null) 'size': size!,
    };