ResolveComponentCandidatesResponse.fromJson constructor

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

Implementation

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