Axis.fromMap constructor

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

Implementation

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