ListSitesOutput.fromJson constructor

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

Implementation

factory ListSitesOutput.fromJson(Map<String, dynamic> json) {
  return ListSitesOutput(
    nextToken: json['NextToken'] as String?,
    sites: (json['Sites'] as List?)
        ?.whereNotNull()
        .map((e) => Site.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}