PutRecordsOutput.fromJson constructor

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

Implementation

factory PutRecordsOutput.fromJson(Map<String, dynamic> json) {
  return PutRecordsOutput(
    records: (json['Records'] as List)
        .whereNotNull()
        .map((e) => PutRecordsResultEntry.fromJson(e as Map<String, dynamic>))
        .toList(),
    encryptionType: (json['EncryptionType'] as String?)?.toEncryptionType(),
    failedRecordCount: json['FailedRecordCount'] as int?,
  );
}