JsonIndexSpec constructor

JsonIndexSpec({
  1. String? jsonPath,
  2. SortOrder? sortOrder,
})

Implementation

factory JsonIndexSpec({
  $core.String? jsonPath,
  SortOrder? sortOrder,
}) {
  final $result = create();
  if (jsonPath != null) {
    $result.jsonPath = jsonPath;
  }
  if (sortOrder != null) {
    $result.sortOrder = sortOrder;
  }
  return $result;
}