BatchGetRepositoriesOutput.fromJson constructor

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

Implementation

factory BatchGetRepositoriesOutput.fromJson(Map<String, dynamic> json) {
  return BatchGetRepositoriesOutput(
    repositories: (json['repositories'] as List?)
        ?.whereNotNull()
        .map((e) => RepositoryMetadata.fromJson(e as Map<String, dynamic>))
        .toList(),
    repositoriesNotFound: (json['repositoriesNotFound'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}