Site.fromMap constructor
Implementation
factory Site.fromMap(Map<String, dynamic> map) {
return Site(
$id: map['\$id'].toString(),
$createdAt: map['\$createdAt'].toString(),
$updatedAt: map['\$updatedAt'].toString(),
name: map['name'].toString(),
enabled: map['enabled'],
live: map['live'],
logging: map['logging'],
framework: map['framework'].toString(),
deploymentId: map['deploymentId'].toString(),
deploymentCreatedAt: map['deploymentCreatedAt'].toString(),
deploymentScreenshotLight: map['deploymentScreenshotLight'].toString(),
deploymentScreenshotDark: map['deploymentScreenshotDark'].toString(),
latestDeploymentId: map['latestDeploymentId'].toString(),
latestDeploymentCreatedAt: map['latestDeploymentCreatedAt'].toString(),
latestDeploymentStatus: map['latestDeploymentStatus'].toString(),
vars: List<Variable>.from(map['vars'].map((p) => Variable.fromMap(p))),
timeout: map['timeout'],
installCommand: map['installCommand'].toString(),
buildCommand: map['buildCommand'].toString(),
outputDirectory: map['outputDirectory'].toString(),
installationId: map['installationId'].toString(),
providerRepositoryId: map['providerRepositoryId'].toString(),
providerBranch: map['providerBranch'].toString(),
providerRootDirectory: map['providerRootDirectory'].toString(),
providerSilentMode: map['providerSilentMode'],
specification: map['specification'].toString(),
buildRuntime: map['buildRuntime'].toString(),
adapter: map['adapter'].toString(),
fallbackFile: map['fallbackFile'].toString(),
);
}