ListGroupResourcesOutput.fromJson constructor

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

Implementation

factory ListGroupResourcesOutput.fromJson(Map<String, dynamic> json) {
  return ListGroupResourcesOutput(
    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(),
    resources: (json['Resources'] as List?)
        ?.whereNotNull()
        .map(
            (e) => ListGroupResourcesItem.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}