BatchGetNamedQueryOutput.fromJson constructor

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

Implementation

factory BatchGetNamedQueryOutput.fromJson(Map<String, dynamic> json) {
  return BatchGetNamedQueryOutput(
    namedQueries: (json['NamedQueries'] as List?)
        ?.whereNotNull()
        .map((e) => NamedQuery.fromJson(e as Map<String, dynamic>))
        .toList(),
    unprocessedNamedQueryIds: (json['UnprocessedNamedQueryIds'] as List?)
        ?.whereNotNull()
        .map((e) =>
            UnprocessedNamedQueryId.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}