DescribePackagesResponse.fromJson constructor

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

Implementation

factory DescribePackagesResponse.fromJson(Map<String, dynamic> json) {
  return DescribePackagesResponse(
    nextToken: json['NextToken'] as String?,
    packageDetailsList: (json['PackageDetailsList'] as List?)
        ?.whereNotNull()
        .map((e) => PackageDetails.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}