DescribeSavingsPlansOfferingsResponse.fromJson constructor

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

Implementation

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