InputMapping.fromMap constructor

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

Implementation

factory InputMapping.fromMap(Map<String, dynamic> map) {
  return InputMapping(
    fieldName: (() { final guardedValue = map['fieldName']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    location: (() { final guardedValue = map['location']; if (guardedValue == null) return null; return pulumi.Input.fromValue(InputMappingLocation.fromValue(guardedValue as String)); })(),
    methodMatch: (() { final guardedValue = map['methodMatch']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
    value: (() { final guardedValue = map['value']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as String); })(),
  );
}