Func.fromMap constructor
Implementation
factory Func.fromMap(Map<String, dynamic> map) {
return Func(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
execute: map['execute'],
name: map['name'].toString(),
enabled: map['enabled'],
runtime: map['runtime'].toString(),
deployment: map['deployment'].toString(),
vars: List<Variable>.from(map['vars'].map((p) => Variable.fromMap(p))),
events: map['events'],
schedule: map['schedule'].toString(),
scheduleNext: map['scheduleNext'].toString(),
schedulePrevious: map['schedulePrevious'].toString(),
timeout: map['timeout'],
);
}