DescribeSessionsResult.fromJson constructor

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

Implementation

factory DescribeSessionsResult.fromJson(Map<String, dynamic> json) {
  return DescribeSessionsResult(
    nextToken: json['NextToken'] as String?,
    sessions: (json['Sessions'] as List?)
        ?.whereNotNull()
        .map((e) => Session.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}