ExecuteStatementOutput.fromJson constructor

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

Implementation

factory ExecuteStatementOutput.fromJson(Map<String, dynamic> json) {
  return ExecuteStatementOutput(
    items: (json['Items'] as List?)
        ?.whereNotNull()
        .map((e) => (e as Map<String, dynamic>).map((k, e) =>
            MapEntry(k, AttributeValue.fromJson(e as Map<String, dynamic>))))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}