toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final nextToken = this.nextToken;
  return {
    if (nextToken != null) 'next_token': nextToken,
    'notifications': notifications.map((v) => v.toJson()).toList(),
  };
}