UsageSnapshot.fromJson constructor

UsageSnapshot.fromJson(
  1. Map json_
)

Implementation

UsageSnapshot.fromJson(core.Map json_)
    : this(
        acceleratorType: json_.containsKey('acceleratorType')
            ? json_['acceleratorType'] as core.String
            : null,
        milliAccelerator: json_.containsKey('milliAccelerator')
            ? json_['milliAccelerator'] as core.String
            : null,
        milliDcu: json_.containsKey('milliDcu')
            ? json_['milliDcu'] as core.String
            : null,
        milliDcuPremium: json_.containsKey('milliDcuPremium')
            ? json_['milliDcuPremium'] as core.String
            : null,
        shuffleStorageGb: json_.containsKey('shuffleStorageGb')
            ? json_['shuffleStorageGb'] as core.String
            : null,
        shuffleStorageGbPremium: json_.containsKey('shuffleStorageGbPremium')
            ? json_['shuffleStorageGbPremium'] as core.String
            : null,
        snapshotTime: json_.containsKey('snapshotTime')
            ? json_['snapshotTime'] as core.String
            : null,
      );