QueryArtifactLineageSubgraphRequest.fromJson constructor

QueryArtifactLineageSubgraphRequest.fromJson(
  1. Object? j
)

Implementation

factory QueryArtifactLineageSubgraphRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return QueryArtifactLineageSubgraphRequest(
    artifact: switch (json['artifact']) {
      null => '',
      Object $1 => decodeString($1),
    },
    maxHops: switch (json['maxHops']) {
      null => 0,
      Object $1 => decodeInt($1),
    },
    filter: switch (json['filter']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}