CustomerEncryptionKey.fromJson constructor

CustomerEncryptionKey.fromJson(
  1. Object? j
)

Implementation

factory CustomerEncryptionKey.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return CustomerEncryptionKey(
    kmsKeyName: switch (json['kmsKeyName']) {
      null => null,
      Object $1 => decodeString($1),
    },
    kmsKeyServiceAccount: switch (json['kmsKeyServiceAccount']) {
      null => null,
      Object $1 => decodeString($1),
    },
    rawKey: switch (json['rawKey']) {
      null => null,
      Object $1 => decodeString($1),
    },
    rsaEncryptedKey: switch (json['rsaEncryptedKey']) {
      null => null,
      Object $1 => decodeString($1),
    },
    sha256: switch (json['sha256']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}