(inter interface{}, v *InterfaceMapValidation)
| 39 | } |
| 40 | |
| 41 | func InterfaceMap(inter interface{}, v *InterfaceMapValidation) (map[string]interface{}, error) { |
| 42 | casted, castOk := cast.InterfaceToStrInterfaceMap(inter) |
| 43 | if !castOk { |
| 44 | return nil, ErrorInvalidPrimitiveType(inter, PrimTypeMap) |
| 45 | } |
| 46 | return ValidateInterfaceMapProvided(casted, v) |
| 47 | } |
| 48 | |
| 49 | func InterfaceMapFromInterfaceMap(key string, iMap map[string]interface{}, v *InterfaceMapValidation) (map[string]interface{}, error) { |
| 50 | inter, ok := ReadInterfaceMapValue(key, iMap) |
no test coverage detected