ShieldedVmConfig.fromJson constructor

ShieldedVmConfig.fromJson(
  1. Object? j
)

Implementation

factory ShieldedVmConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ShieldedVmConfig(
    enableSecureBoot: switch (json['enableSecureBoot']) {
      null => false,
      Object $1 => decodeBool($1),
    },
  );
}