GetDeploymentsResponse.fromJson constructor

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

Implementation

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