ListInstancesResponse.fromJson constructor

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

Implementation

factory ListInstancesResponse.fromJson(Map<String, dynamic> json) {
  return ListInstancesResponse(
    instanceSummaryList: (json['InstanceSummaryList'] as List?)
        ?.whereNotNull()
        .map((e) => InstanceSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}