ListFlowExecutionMessagesResponse.fromJson constructor

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

Implementation

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