ListHandshakesForAccountResponse.fromJson constructor

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

Implementation

factory ListHandshakesForAccountResponse.fromJson(Map<String, dynamic> json) {
  return ListHandshakesForAccountResponse(
    handshakes: (json['Handshakes'] as List?)
        ?.whereNotNull()
        .map((e) => Handshake.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}