ListTrialComponentsResponse.fromJson constructor

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

Implementation

factory ListTrialComponentsResponse.fromJson(Map<String, dynamic> json) {
  return ListTrialComponentsResponse(
    nextToken: json['NextToken'] as String?,
    trialComponentSummaries: (json['TrialComponentSummaries'] as List?)
        ?.whereNotNull()
        .map((e) => TrialComponentSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}