File.fromJson constructor

File.fromJson(
  1. Map json_
)

Implementation

File.fromJson(core.Map json_)
    : this(
        contents: json_.containsKey('contents')
            ? json_['contents'] as core.String
            : null,
        diskPath: json_.containsKey('diskPath')
            ? DiskPath.fromJson(
                json_['diskPath'] as core.Map<core.String, core.dynamic>)
            : null,
        hashedSize: json_.containsKey('hashedSize')
            ? json_['hashedSize'] as core.String
            : null,
        partiallyHashed: json_.containsKey('partiallyHashed')
            ? json_['partiallyHashed'] as core.bool
            : null,
        path: json_.containsKey('path') ? json_['path'] as core.String : null,
        sha256: json_.containsKey('sha256')
            ? json_['sha256'] as core.String
            : null,
        size: json_.containsKey('size') ? json_['size'] as core.String : null,
      );