Deployment.fromMap constructor

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

Implementation

factory Deployment.fromMap(Map<String, dynamic> map) {
  return Deployment(
    $id: map['\$id'].toString(),
    $createdAt: map['\$createdAt'].toString(),
    $updatedAt: map['\$updatedAt'].toString(),
    type: map['type'].toString(),
    resourceId: map['resourceId'].toString(),
    resourceType: map['resourceType'].toString(),
    entrypoint: map['entrypoint'].toString(),
    size: map['size'],
    buildId: map['buildId'].toString(),
    activate: map['activate'],
    status: map['status'].toString(),
    buildLogs: map['buildLogs'].toString(),
    buildTime: map['buildTime'],
    providerRepositoryName: map['providerRepositoryName'].toString(),
    providerRepositoryOwner: map['providerRepositoryOwner'].toString(),
    providerRepositoryUrl: map['providerRepositoryUrl'].toString(),
    providerBranch: map['providerBranch'].toString(),
    providerCommitHash: map['providerCommitHash'].toString(),
    providerCommitAuthorUrl: map['providerCommitAuthorUrl'].toString(),
    providerCommitAuthor: map['providerCommitAuthor'].toString(),
    providerCommitMessage: map['providerCommitMessage'].toString(),
    providerCommitUrl: map['providerCommitUrl'].toString(),
    providerBranchUrl: map['providerBranchUrl'].toString(),
  );
}