Build.fromMap constructor

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

Implementation

factory Build.fromMap(Map<String, dynamic> map) {
  return Build(
    $id: map['\$id'].toString(),
    deploymentId: map['deploymentId'].toString(),
    status: map['status'].toString(),
    stdout: map['stdout'].toString(),
    stderr: map['stderr'].toString(),
    startTime: map['startTime'].toString(),
    endTime: map['endTime'].toString(),
    duration: map['duration'],
    size: map['size'],
  );
}