UnitDependent.fromMap constructor

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

Implementation

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