Func.fromMap constructor

Func.fromMap(
  1. Map<String, dynamic> map
)

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'],
    live: map['live'],
    logging: map['logging'],
    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(),
    timeout: map['timeout'],
    entrypoint: map['entrypoint'].toString(),
    commands: map['commands'].toString(),
    version: map['version'].toString(),
    installationId: map['installationId'].toString(),
    providerRepositoryId: map['providerRepositoryId'].toString(),
    providerBranch: map['providerBranch'].toString(),
    providerRootDirectory: map['providerRootDirectory'].toString(),
    providerSilentMode: map['providerSilentMode'],
  );
}