(parseObjectJSON: any, fields: any)
| 112 | } |
| 113 | |
| 114 | _toJSONWithFields(parseObjectJSON: any, fields: any): FlattenedObjectData { |
| 115 | if (!fields) { |
| 116 | return parseObjectJSON; |
| 117 | } |
| 118 | const limitedParseObject = {}; |
| 119 | for (const field of dafaultFields) { |
| 120 | limitedParseObject[field] = parseObjectJSON[field]; |
| 121 | } |
| 122 | for (const field of fields) { |
| 123 | if (field in parseObjectJSON) { |
| 124 | limitedParseObject[field] = parseObjectJSON[field]; |
| 125 | } |
| 126 | } |
| 127 | return limitedParseObject; |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | export { Client }; |
no outgoing calls
no test coverage detected