GetAgentAgentVersionsArgs.fromMap constructor

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

Implementation

factory GetAgentAgentVersionsArgs.fromMap(Map<String, dynamic> map) {
  return GetAgentAgentVersionsArgs(
    agentId: pulumi.Input.fromValue(map['agentId'] as String),
    agentVersionSummaries: (() { final guardedValue = map['agentVersionSummaries']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<GetAgentAgentVersionsAgentVersionSummary>(guardedValue, (value) => GetAgentAgentVersionsAgentVersionSummary.fromMap((value as Map).cast<String, dynamic>()))); })(),
    region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
  );
}