toJsonList static method

dynamic toJsonList(
  1. List<UserModel> data
)

Implementation

static toJsonList(List<UserModel> data) =>
    data.map((e) => e.toJson()).toList();