toMap method
Implementation
Map<String, dynamic> toMap() {
return {
"\$id": $id,
"\$createdAt": $createdAt,
"\$updatedAt": $updatedAt,
"\$permissions": $permissions,
"functionId": functionId,
"trigger": trigger,
"status": status,
"requestMethod": requestMethod,
"requestPath": requestPath,
"requestHeaders": requestHeaders.map((p) => p.toMap()).toList(),
"responseStatusCode": responseStatusCode,
"responseBody": responseBody,
"responseHeaders": responseHeaders.map((p) => p.toMap()).toList(),
"logs": logs,
"errors": errors,
"duration": duration,
};
}