FutureResourcesSpecLocalSsdPartition.fromJson constructor

FutureResourcesSpecLocalSsdPartition.fromJson(
  1. Object? j
)

Implementation

factory FutureResourcesSpecLocalSsdPartition.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return FutureResourcesSpecLocalSsdPartition(
    diskInterface: switch (json['diskInterface']) {
      null => null,
      Object $1 => decodeString($1),
    },
    diskSizeGb: switch (json['diskSizeGb']) {
      null => null,
      Object $1 => decodeInt64($1),
    },
  );
}