GoogleChromeManagementV1DiskInfo.fromJson constructor

GoogleChromeManagementV1DiskInfo.fromJson(
  1. Map json_
)

Implementation

GoogleChromeManagementV1DiskInfo.fromJson(core.Map json_)
    : this(
        bytesReadThisSession: json_.containsKey('bytesReadThisSession')
            ? json_['bytesReadThisSession'] as core.String
            : null,
        bytesWrittenThisSession: json_.containsKey('bytesWrittenThisSession')
            ? json_['bytesWrittenThisSession'] as core.String
            : null,
        discardTimeThisSession: json_.containsKey('discardTimeThisSession')
            ? json_['discardTimeThisSession'] as core.String
            : null,
        health: json_.containsKey('health')
            ? json_['health'] as core.String
            : null,
        ioTimeThisSession: json_.containsKey('ioTimeThisSession')
            ? json_['ioTimeThisSession'] as core.String
            : null,
        manufacturer: json_.containsKey('manufacturer')
            ? json_['manufacturer'] as core.String
            : null,
        model:
            json_.containsKey('model') ? json_['model'] as core.String : null,
        readTimeThisSession: json_.containsKey('readTimeThisSession')
            ? json_['readTimeThisSession'] as core.String
            : null,
        serialNumber: json_.containsKey('serialNumber')
            ? json_['serialNumber'] as core.String
            : null,
        sizeBytes: json_.containsKey('sizeBytes')
            ? json_['sizeBytes'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        volumeIds: json_.containsKey('volumeIds')
            ? (json_['volumeIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        writeTimeThisSession: json_.containsKey('writeTimeThisSession')
            ? json_['writeTimeThisSession'] as core.String
            : null,
      );