| 792 | |
| 793 | @dataclass |
| 794 | class SearchRowLocation: |
| 795 | field: str = None |
| 796 | term: str = None |
| 797 | position: UnsignedInt32 = None |
| 798 | start: UnsignedInt32 = None |
| 799 | end: UnsignedInt32 = None |
| 800 | array_positions: List[UnsignedInt32] = None |
| 801 | |
| 802 | @classmethod |
| 803 | def from_server(cls, json_data: Dict[str, Any]) -> SearchRowLocation: |
| 804 | return cls(json_data.get('field'), |
| 805 | json_data.get('term'), |
| 806 | json_data.get('position'), |
| 807 | json_data.get('start_offset'), |
| 808 | json_data.get('end_offset'), |
| 809 | json_data.get('array_positions')) |
| 810 | |
| 811 | |
| 812 | class SearchRowLocations: |