FixedOrPercent.fromMap constructor

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

Implementation

factory FixedOrPercent.fromMap(Map<String, dynamic> map) {
  return FixedOrPercent(
    fixed: (() { final guardedValue = map['fixed']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
    percent: (() { final guardedValue = map['percent']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as int); })(),
  );
}