GetEventIntegrationResult.fromMap constructor

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

Implementation

factory GetEventIntegrationResult.fromMap(Map<String, dynamic> map) {
  return GetEventIntegrationResult(
    arn: (() { final guardedValue = map['arn']; if (guardedValue == null) return null; return guardedValue as String; })(),
    description: (() { final guardedValue = map['description']; if (guardedValue == null) return null; return guardedValue as String; })(),
    eventFilters: (() { final guardedValue = map['eventFilters']; if (guardedValue == null) return null; return pulumi.Input.decodeList<GetEventIntegrationEventFilter>(guardedValue, (value) => GetEventIntegrationEventFilter.fromMap((value as Map).cast<String, dynamic>())); })(),
    eventbridgeBus: (() { final guardedValue = map['eventbridgeBus']; if (guardedValue == null) return null; return guardedValue as String; })(),
    id: (() { final guardedValue = map['id']; if (guardedValue == null) return null; return guardedValue as String; })(),
    name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return guardedValue as String; })(),
    region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return guardedValue as String; })(),
    tags: (() { final guardedValue = map['tags']; if (guardedValue == null) return null; return (guardedValue as Map).cast<String, String>(); })(),
  );
}