MetastoreServiceNetworkConfig.fromMap constructor

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

Implementation

factory MetastoreServiceNetworkConfig.fromMap(Map<String, dynamic> map) {
  return MetastoreServiceNetworkConfig(
    consumers: pulumi.Input.fromValue(pulumi.Input.decodeList<MetastoreServiceNetworkConfigConsumer>(map['consumers']!, (value) => MetastoreServiceNetworkConfigConsumer.fromMap((value as Map).cast<String, dynamic>()))),
    customRoutesEnabled: (() { final guardedValue = map['customRoutesEnabled']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
  );
}