SourceDiskEncryptionKey.fromJson constructor

SourceDiskEncryptionKey.fromJson(
  1. Object? j
)

Implementation

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