ListResolverQueryLogConfigsResponse.fromJson constructor

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

Implementation

factory ListResolverQueryLogConfigsResponse.fromJson(
    Map<String, dynamic> json) {
  return ListResolverQueryLogConfigsResponse(
    nextToken: json['NextToken'] as String?,
    resolverQueryLogConfigs: (json['ResolverQueryLogConfigs'] as List?)
        ?.whereNotNull()
        .map(
            (e) => ResolverQueryLogConfig.fromJson(e as Map<String, dynamic>))
        .toList(),
    totalCount: json['TotalCount'] as int?,
    totalFilteredCount: json['TotalFilteredCount'] as int?,
  );
}