Deployments.fromJson constructor

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

Implementation

factory Deployments.fromJson(Map<String, dynamic> json) {
  return Deployments(
    items: (json['Items'] as List?)
        ?.whereNotNull()
        .map((e) => DeploymentSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}