DescribeStacksResult.fromJson constructor

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

Implementation

factory DescribeStacksResult.fromJson(Map<String, dynamic> json) {
  return DescribeStacksResult(
    nextToken: json['NextToken'] as String?,
    stacks: (json['Stacks'] as List?)
        ?.whereNotNull()
        .map((e) => Stack.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}