DescribeSavingsPlanRatesResponse.fromJson constructor

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

Implementation

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