ServiceAccountsPage.fromJson constructor

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

Implementation

factory ServiceAccountsPage.fromJson(Map<String, dynamic> json) {
  final list = json['service_accounts'] as List<dynamic>? ?? [];
  return ServiceAccountsPage(
    serviceAccounts: list.whereType<Map<String, dynamic>>().map(ServiceAccount.fromJson).toList(),
    continuationToken: json['continuation_token'] as String?,
  );
}