LocalDiskResponse.fromMap constructor

LocalDiskResponse.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory LocalDiskResponse.fromMap(Map<String, dynamic> map) {
  return LocalDiskResponse(
    autoDelete: pulumi.Input.fromValue(map['autoDelete'] as bool),
    boot: pulumi.Input.fromValue(map['boot'] as bool),
    deviceName: pulumi.Input.fromValue(map['deviceName'] as String),
    guestOsFeatures: pulumi.Input.fromValue(pulumi.Input.decodeList<RuntimeGuestOsFeatureResponse>(map['guestOsFeatures']!, (value) => RuntimeGuestOsFeatureResponse.fromMap((value as Map).cast<String, dynamic>()))),
    index: pulumi.Input.fromValue(map['index'] as int),
    initializeParams: pulumi.Input.fromValue(LocalDiskInitializeParamsResponse.fromMap((map['initializeParams']! as Map).cast<String, dynamic>())),
    interface: pulumi.Input.fromValue(map['interface'] as String),
    kind: pulumi.Input.fromValue(map['kind'] as String),
    licenses: pulumi.Input.fromValue((map['licenses'] as List).cast<String>()),
    mode: pulumi.Input.fromValue(map['mode'] as String),
    source: pulumi.Input.fromValue(map['source'] as String),
    type: pulumi.Input.fromValue(map['type'] as String),
  );
}