ListBudgetsForResourceOutput.fromJson constructor

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

Implementation

factory ListBudgetsForResourceOutput.fromJson(Map<String, dynamic> json) {
  return ListBudgetsForResourceOutput(
    budgets: (json['Budgets'] as List?)
        ?.whereNotNull()
        .map((e) => BudgetDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageToken: json['NextPageToken'] as String?,
  );
}