ListCostCategoryDefinitionsResponse.fromJson constructor

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

Implementation

factory ListCostCategoryDefinitionsResponse.fromJson(
    Map<String, dynamic> json) {
  return ListCostCategoryDefinitionsResponse(
    costCategoryReferences: (json['CostCategoryReferences'] as List?)
        ?.whereNotNull()
        .map((e) => CostCategoryReference.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}