BatchGetItemOutput.fromJson constructor

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

Implementation

factory BatchGetItemOutput.fromJson(Map<String, dynamic> json) {
  return BatchGetItemOutput(
    responses: (json['Responses'] as Map<String, dynamic>?)?.map((k, e) =>
        MapEntry(k, BatchResponse.fromJson(e as Map<String, dynamic>))),
    unprocessedKeys: (json['UnprocessedKeys'] as Map<String, dynamic>?)?.map(
        (k, e) => MapEntry(
            k, KeysAndAttributes.fromJson(e as Map<String, dynamic>))),
  );
}