ShieldedInstanceIdentityEntry.fromJson constructor

ShieldedInstanceIdentityEntry.fromJson(
  1. Object? j
)

Implementation

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