Converts this instance to json
Map<String, dynamic> toJson() { return { "status": status, "message": message, "data": data?.toJson() }; }