ListOperationsResponse.fromJson constructor

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

Implementation

factory ListOperationsResponse.fromJson(Map<String, dynamic> json) {
  return ListOperationsResponse(
    nextToken: json['NextToken'] as String?,
    operations: (json['Operations'] as List?)
        ?.whereNotNull()
        .map((e) => OperationSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}