BulkOperationErrorResult.fromJson constructor

BulkOperationErrorResult.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory BulkOperationErrorResult.fromJson(Map<String, Object?> json) {
  return BulkOperationErrorResult(
    elementErrors: json[r'elementErrors'] != null
        ? ErrorCollection.fromJson(
            json[r'elementErrors']! as Map<String, Object?>)
        : null,
    failedElementNumber: (json[r'failedElementNumber'] as num?)?.toInt(),
    status: (json[r'status'] as num?)?.toInt(),
  );
}