PutRecordBatchOutput.fromJson constructor

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

Implementation

factory PutRecordBatchOutput.fromJson(Map<String, dynamic> json) {
  return PutRecordBatchOutput(
    failedPutCount: json['FailedPutCount'] as int,
    requestResponses: (json['RequestResponses'] as List)
        .whereNotNull()
        .map((e) =>
            PutRecordBatchResponseEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
    encrypted: json['Encrypted'] as bool?,
  );
}