fromJson static method

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

Implementation

static NotificationSounds? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return NotificationSounds(
    notificationSounds: List<NotificationSound>.from(
        ((json['notification_sounds'] as List<dynamic>?) ?? <dynamic>[])
            .map((item) =>
                NotificationSound.fromJson(item as Map<String, dynamic>?))
            .toList()),
  );
}