GetInstancesResult.fromJson constructor

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

Implementation

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