AddNotificationsDetails.fromJson constructor

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

Implementation

factory AddNotificationsDetails.fromJson(Map<String, Object?> json) {
  return AddNotificationsDetails(
    notificationSchemeEvents:
        (json[r'notificationSchemeEvents'] as List<Object?>?)
                ?.map((i) => NotificationSchemeEventDetails.fromJson(
                    i as Map<String, Object?>? ?? const {}))
                .toList() ??
            [],
  );
}