ListArtifactsResult.fromJson constructor

ListArtifactsResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListArtifactsResult.fromJson(Map<String, dynamic> json) {
  return ListArtifactsResult(
    artifacts: (json['artifacts'] as List)
        .whereNotNull()
        .map((e) => Artifact.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}