GetNotificationsResponse.fromJson constructor

GetNotificationsResponse.fromJson(
  1. Map<String, Object?> json
)

Implementation

GetNotificationsResponse.fromJson(Map<String, Object?> json)
  : nextToken = ((v) => v != null ? v as String : null)(json['next_token']),
    notifications = (json['notifications'] as List)
        .map((v) => Notification.fromJson(v as Map<String, Object?>))
        .toList();