toJsonList static method

List<Map<String, dynamic>>? toJsonList(
  1. List<RecentForward>? recentForwards
)

Implementation

static List<Map<String, dynamic>>? toJsonList(
    List<RecentForward>? recentForwards) {
  if (recentForwards == null) return null;
  return recentForwards.map((e) => e.toJson()).toList();
}