DescribeAvailablePatchesResult.fromJson constructor

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

Implementation

factory DescribeAvailablePatchesResult.fromJson(Map<String, dynamic> json) {
  return DescribeAvailablePatchesResult(
    nextToken: json['NextToken'] as String?,
    patches: (json['Patches'] as List?)
        ?.whereNotNull()
        .map((e) => Patch.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}