GetKeyPairsResult.fromJson constructor

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

Implementation

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