(actionResponses []map[string]interface{}, responseType string)
| 1231 | } |
| 1232 | |
| 1233 | func actionResponseAttributes(actionResponses []map[string]interface{}, responseType string) map[string]interface{} { |
| 1234 | for _, actionResponse := range actionResponses { |
| 1235 | if actionResponse["ResponseType"] == responseType { |
| 1236 | attrs, _ := actionResponse["Attributes"].(map[string]interface{}) |
| 1237 | if attrs != nil { |
| 1238 | return attrs |
| 1239 | } |
| 1240 | } |
| 1241 | } |
| 1242 | return map[string]interface{}{} |
| 1243 | } |
| 1244 | |
| 1245 | func CreateObject(typeName string, attributes map[string]interface{}) map[string]interface{} { |
| 1246 |
no outgoing calls
no test coverage detected