ListInstancesResponse.fromJson constructor

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

Implementation

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