toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => {
      "id": id,
      "read_at": readAt,
      "profile_image": profileImage,
      "created_at": createdAt,
      "user_id": userId,
      "data": data?.toMap(),
    };