GetEventBusesResult.fromMap constructor

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

Implementation

factory GetEventBusesResult.fromMap(Map<String, dynamic> map) {
  return GetEventBusesResult(
    eventBuses: (() { final guardedValue = map['eventBuses']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetEventBusesEventBus>(guardedValue, (value) => GetEventBusesEventBus.fromMap((value as Map).cast<String, dynamic>())); })(),
    namePrefix: (() { final guardedValue = map['namePrefix']; if (guardedValue == null) return null; return guardedValue as String; })(),
    region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return guardedValue as String; })(),
  );
}