BatchPrediction.fromJson constructor

BatchPrediction.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory BatchPrediction.fromJson(Map<String, dynamic> json) {
  return BatchPrediction(
    batchPredictionDataSourceId:
        json['BatchPredictionDataSourceId'] as String?,
    batchPredictionId: json['BatchPredictionId'] as String?,
    computeTime: json['ComputeTime'] as int?,
    createdAt: timeStampFromJson(json['CreatedAt']),
    createdByIamUser: json['CreatedByIamUser'] as String?,
    finishedAt: timeStampFromJson(json['FinishedAt']),
    inputDataLocationS3: json['InputDataLocationS3'] as String?,
    invalidRecordCount: json['InvalidRecordCount'] as int?,
    lastUpdatedAt: timeStampFromJson(json['LastUpdatedAt']),
    mLModelId: json['MLModelId'] as String?,
    message: json['Message'] as String?,
    name: json['Name'] as String?,
    outputUri: json['OutputUri'] as String?,
    startedAt: timeStampFromJson(json['StartedAt']),
    status: (json['Status'] as String?)?.toEntityStatus(),
    totalRecordCount: json['TotalRecordCount'] as int?,
  );
}