SelectResourceConfigResponse.fromJson constructor

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

Implementation

factory SelectResourceConfigResponse.fromJson(Map<String, dynamic> json) {
  return SelectResourceConfigResponse(
    nextToken: json['NextToken'] as String?,
    queryInfo: json['QueryInfo'] != null
        ? QueryInfo.fromJson(json['QueryInfo'] as Map<String, dynamic>)
        : null,
    results: (json['Results'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}