Execution.fromMap constructor
Execution.fromMap(
- Map<String, dynamic> map
)
Implementation
factory Execution.fromMap(Map<String, dynamic> map) {
return Execution(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
$permissions: map['\$permissions'] ?? [],
functionId: map['functionId'].toString(),
trigger: map['trigger'].toString(),
status: map['status'].toString(),
requestMethod: map['requestMethod'].toString(),
requestPath: map['requestPath'].toString(),
requestHeaders: List<Headers>.from(
map['requestHeaders'].map((p) => Headers.fromMap(p))),
responseStatusCode: map['responseStatusCode'],
responseBody: map['responseBody'].toString(),
responseHeaders: List<Headers>.from(
map['responseHeaders'].map((p) => Headers.fromMap(p))),
logs: map['logs'].toString(),
errors: map['errors'].toString(),
duration: map['duration'].toDouble(),
scheduledAt: map['scheduledAt']?.toString(),
);
}