SearchResourcesOutput.fromJson constructor

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

Implementation

factory SearchResourcesOutput.fromJson(Map<String, dynamic> json) {
  return SearchResourcesOutput(
    nextToken: json['NextToken'] as String?,
    queryErrors: (json['QueryErrors'] as List?)
        ?.whereNotNull()
        .map((e) => QueryError.fromJson(e as Map<String, dynamic>))
        .toList(),
    resourceIdentifiers: (json['ResourceIdentifiers'] as List?)
        ?.whereNotNull()
        .map((e) => ResourceIdentifier.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}