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;
}