TopicArgs.fromMap constructor
TopicArgs.fromMap(
- Map<String, dynamic> map
)
Implementation
factory TopicArgs.fromMap(Map<String, dynamic> map) {
return TopicArgs(
clusterArn: pulumi.Input.fromValue(map['clusterArn'] as String),
configs: (() { final guardedValue = map['configs']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
name: (() { final guardedValue = map['name']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
partitionCount: pulumi.Input.fromValue((map['partitionCount'] as num).toInt()),
region: (() { final guardedValue = map['region']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
replicationFactor: pulumi.Input.fromValue((map['replicationFactor'] as num).toInt()),
timeouts: (() { final guardedValue = map['timeouts']; if (guardedValue == null) return null; return pulumi.Input.fromValue(TopicTimeouts.fromMap((guardedValue as Map).cast<String, dynamic>())); })(),
);
}