ResourceStatusEffectiveInstanceMetadata.fromJson constructor

ResourceStatusEffectiveInstanceMetadata.fromJson(
  1. Object? j
)

Implementation

factory ResourceStatusEffectiveInstanceMetadata.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ResourceStatusEffectiveInstanceMetadata(
    blockProjectSshKeysMetadataValue:
        switch (json['blockProjectSshKeysMetadataValue']) {
          null => null,
          Object $1 => decodeBool($1),
        },
    enableGuestAttributesMetadataValue:
        switch (json['enableGuestAttributesMetadataValue']) {
          null => null,
          Object $1 => decodeBool($1),
        },
    enableOsInventoryMetadataValue:
        switch (json['enableOsInventoryMetadataValue']) {
          null => null,
          Object $1 => decodeBool($1),
        },
    enableOsconfigMetadataValue:
        switch (json['enableOsconfigMetadataValue']) {
          null => null,
          Object $1 => decodeBool($1),
        },
    enableOsloginMetadataValue: switch (json['enableOsloginMetadataValue']) {
      null => null,
      Object $1 => decodeBool($1),
    },
    gceContainerDeclarationMetadataValue:
        switch (json['gceContainerDeclarationMetadataValue']) {
          null => null,
          Object $1 => decodeBool($1),
        },
    serialPortEnableMetadataValue:
        switch (json['serialPortEnableMetadataValue']) {
          null => null,
          Object $1 => decodeBool($1),
        },
    serialPortLoggingEnableMetadataValue:
        switch (json['serialPortLoggingEnableMetadataValue']) {
          null => null,
          Object $1 => decodeBool($1),
        },
    vmDnsSettingMetadataValue: switch (json['vmDnsSettingMetadataValue']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}