CustomerEncryptionKeyProtectedDisk.fromJson constructor

CustomerEncryptionKeyProtectedDisk.fromJson(
  1. Object? j
)

Implementation

factory CustomerEncryptionKeyProtectedDisk.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return CustomerEncryptionKeyProtectedDisk(
    diskEncryptionKey: switch (json['diskEncryptionKey']) {
      null => null,
      Object $1 => CustomerEncryptionKey.fromJson($1),
    },
    source: switch (json['source']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}