ListNotebookExecutionJobsRequest.fromJson constructor

ListNotebookExecutionJobsRequest.fromJson(
  1. Object? j
)

Implementation

factory ListNotebookExecutionJobsRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return ListNotebookExecutionJobsRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    filter: switch (json['filter']) {
      null => '',
      Object $1 => decodeString($1),
    },
    pageSize: switch (json['pageSize']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
    pageToken: switch (json['pageToken']) {
      null => '',
      Object $1 => decodeString($1),
    },
    orderBy: switch (json['orderBy']) {
      null => '',
      Object $1 => decodeString($1),
    },
    view: switch (json['view']) {
      null => NotebookExecutionJobView.$default,
      Object $1 => NotebookExecutionJobView.fromJson($1),
    },
  );
}