(field: any, value?: any, moreFieldsAndValues?: any)
| 195 | } |
| 196 | |
| 197 | function createDictionary(field: any, value?: any, moreFieldsAndValues?: any) { |
| 198 | const data = new java.util.HashMap(); |
| 199 | if (field instanceof FieldPath) { |
| 200 | data.put(field.native as any, value?.native || value); |
| 201 | } else { |
| 202 | data.put(field, value?.native || value); |
| 203 | } |
| 204 | |
| 205 | if (Array.isArray(moreFieldsAndValues)) { |
| 206 | for (let i = 0; i < moreFieldsAndValues.length; i += 2) { |
| 207 | const key = moreFieldsAndValues[i]; |
| 208 | const value = moreFieldsAndValues[i + 1]; |
| 209 | data.put(key?.native || key, value?.native || value); |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | return data; |
| 214 | } |
| 215 | |
| 216 | export class Transaction implements ITransaction { |
| 217 | _native: com.google.firebase.firestore.Transaction; |
nothing calls this directly
no test coverage detected
searching dependent graphs…