ListCommandInvocationsResult.fromJson constructor

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

Implementation

factory ListCommandInvocationsResult.fromJson(Map<String, dynamic> json) {
  return ListCommandInvocationsResult(
    commandInvocations: (json['CommandInvocations'] as List?)
        ?.whereNotNull()
        .map((e) => CommandInvocation.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}