SearchDataItemsRequest.fromJson constructor
SearchDataItemsRequest.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SearchDataItemsRequest.fromJson(Map<String, dynamic> json) {
return SearchDataItemsRequest(
orderByDataItem: json['orderByDataItem'],
orderByAnnotation: decode(
json['orderByAnnotation'],
SearchDataItemsRequest_OrderByAnnotation.fromJson,
),
dataset: json['dataset'] ?? '',
savedQuery: json['savedQuery'] ?? '',
dataLabelingJob: json['dataLabelingJob'] ?? '',
dataItemFilter: json['dataItemFilter'] ?? '',
annotationsFilter: json['annotationsFilter'] ?? '',
annotationFilters: decodeList(json['annotationFilters']) ?? [],
fieldMask: decodeCustom(json['fieldMask'], protobuf.FieldMask.fromJson),
annotationsLimit: json['annotationsLimit'] ?? 0,
pageSize: json['pageSize'] ?? 0,
orderBy: json['orderBy'] ?? '',
pageToken: json['pageToken'] ?? '',
);
}