DescribeInstancePatchStatesResult.fromJson constructor

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

Implementation

factory DescribeInstancePatchStatesResult.fromJson(
    Map<String, dynamic> json) {
  return DescribeInstancePatchStatesResult(
    instancePatchStates: (json['InstancePatchStates'] as List?)
        ?.whereNotNull()
        .map((e) => InstancePatchState.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}