(fieldPath: string | number | FieldPath)
| 357 | } |
| 358 | |
| 359 | get<fieldType extends DocumentFieldType>(fieldPath: string | number | FieldPath): fieldType { |
| 360 | if (fieldPath instanceof FieldPath) { |
| 361 | return deserializeField(this.native.get(fieldPath?.native)); |
| 362 | } else { |
| 363 | return deserializeField(this.native.get(String(fieldPath))); |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | toJSON() { |
| 368 | return { |
nothing calls this directly
no test coverage detected