GetDistributionsResult.fromJson constructor

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

Implementation

factory GetDistributionsResult.fromJson(Map<String, dynamic> json) {
  return GetDistributionsResult(
    distributions: (json['distributions'] as List?)
        ?.whereNotNull()
        .map((e) => LightsailDistribution.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextPageToken: json['nextPageToken'] as String?,
  );
}