DiscoverInstancesResponse.fromJson constructor

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

Implementation

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