(raw []byte)
| 1334 | } |
| 1335 | |
| 1336 | func unmarshalHomeModelsTopLevel(raw []byte) (map[string]json.RawMessage, bool) { |
| 1337 | if len(raw) == 0 { |
| 1338 | return nil, false |
| 1339 | } |
| 1340 | var top map[string]json.RawMessage |
| 1341 | if errUnmarshal := json.Unmarshal(raw, &top); errUnmarshal != nil { |
| 1342 | return nil, false |
| 1343 | } |
| 1344 | return top, true |
| 1345 | } |
| 1346 | |
| 1347 | func decodeHomeModels(raw []byte) ([]homeModelEntry, error) { |
| 1348 | if len(raw) == 0 { |
no outgoing calls
no test coverage detected